mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-12 19:03:47 +00:00
e204f671be
refactor: remove unused code refactor: extract loader component refactor: prevent keyword collision refactor: cleanup hook pending states
22 lines
589 B
TypeScript
22 lines
589 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;
|
|
injectedStyles?: CSSProperties;
|
|
className?: string;
|
|
}
|
|
|
|
export default function Empty({ text, className, injectedStyles }: EmptyProps) {
|
|
return (
|
|
<div className={cx([style.emptyContainer, className])} style={injectedStyles}>
|
|
<EmptyImage className={style.empty} />
|
|
{text && <span className={style.text}>{text}</span>}
|
|
</div>
|
|
);
|
|
}
|