jellyfish-web/src/elements/ItemsContainerElement.tsx

26 lines
492 B
TypeScript
Raw Normal View History

2022-10-02 19:07:42 +03:00
import React, { FC } from 'react';
2022-08-06 01:36:13 +03:00
2022-10-02 19:07:42 +03:00
const createElement = ({ className }: IProps) => ({
2022-08-06 01:36:13 +03:00
__html: `<div
is="emby-itemscontainer"
class="${className}"
>
</div>`
});
2022-10-02 19:07:42 +03:00
interface IProps {
2022-08-06 01:36:13 +03:00
className?: string;
}
2022-10-02 19:07:42 +03:00
const ItemsContainerElement: FC<IProps> = ({ className }) => {
2022-08-06 01:36:13 +03:00
return (
<div
2022-08-07 02:33:25 +03:00
dangerouslySetInnerHTML={createElement({
2022-08-06 01:36:13 +03:00
className: className
})}
/>
);
};
export default ItemsContainerElement;