Files
ontime/apps/client/src/features/rundown/RundownEmpty.tsx
T
2025-08-18 06:16:53 +02:00

35 lines
1.0 KiB
TypeScript

import { IoAdd } from 'react-icons/io5';
import { SupportedEntry } from 'ontime-types';
import Button from '../../common/components/buttons/Button';
import * as Editor from '../../common/components/editor-utils/EditorUtils';
import Empty from '../../common/components/state/Empty';
import style from './Empty.module.scss';
interface RundownEmptyProps {
handleAddNew: (type: SupportedEntry) => void;
}
export default function RundownEmpty(props: RundownEmptyProps) {
const { handleAddNew } = props;
return (
<div className={style.empty}>
<Empty injectedStyles={{ marginTop: '5vh', marginBottom: '3rem' }} />
<div className={style.inline}>
<Button onClick={() => handleAddNew(SupportedEntry.Event)} variant='primary' size='large'>
<IoAdd />
Create Event
</Button>
<Editor.Separator />
<Button onClick={() => handleAddNew(SupportedEntry.Group)} variant='primary' size='large'>
<IoAdd /> Create Group
</Button>
</div>
</div>
);
}