mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Migrate Movies
This commit is contained in:
parent
122c4ae600
commit
479c53eb8b
21 changed files with 1713 additions and 7 deletions
28
src/elements/ItemsContainerElement.tsx
Normal file
28
src/elements/ItemsContainerElement.tsx
Normal file
|
@ -0,0 +1,28 @@
|
|||
import React, { FunctionComponent } from 'react';
|
||||
|
||||
const createButtonElement = ({ id, className }: IProps) => ({
|
||||
__html: `<div
|
||||
is="emby-itemscontainer"
|
||||
id="${id}"
|
||||
class="${className}"
|
||||
>
|
||||
</div>`
|
||||
});
|
||||
|
||||
type IProps = {
|
||||
id?: string;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const ItemsContainerElement: FunctionComponent<IProps> = ({ id, className }: IProps) => {
|
||||
return (
|
||||
<div
|
||||
dangerouslySetInnerHTML={createButtonElement({
|
||||
id: id,
|
||||
className: className
|
||||
})}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
export default ItemsContainerElement;
|
Loading…
Add table
Add a link
Reference in a new issue