mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-09 09:23:51 +00:00
946b6717d2
refactor: improve empty state refactor: review schedule design - fit as many elements as possible - expose cycle interval as an option - stabilise rundown reference - style tweaks
23 lines
583 B
TypeScript
23 lines
583 B
TypeScript
import { CSSProperties } from 'react';
|
|
|
|
import EmptyImage from '../../../assets/images/empty.svg?react';
|
|
import { cx } from '../../utils/styleUtils';
|
|
|
|
import style from './Empty.module.scss';
|
|
|
|
interface EmptyProps {
|
|
text?: string;
|
|
style?: CSSProperties;
|
|
className?: string;
|
|
}
|
|
|
|
export default function Empty(props: EmptyProps) {
|
|
const { text, className, ...rest } = props;
|
|
return (
|
|
<div className={cx([style.emptyContainer, className])} {...rest}>
|
|
<EmptyImage className={style.empty} />
|
|
{text && <span className={style.text}>{text}</span>}
|
|
</div>
|
|
);
|
|
}
|