mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-16 21:03:29 +00:00
bb541c551f
* chore: upgrade build dependencies * chore: add bundle analysis script * chore: upgrade sentry deps * chore: upgrade node types * docs: declare new engine versions
21 lines
477 B
TypeScript
21 lines
477 B
TypeScript
import { CSSProperties } from 'react';
|
|
|
|
import EmptyImage from '../../../assets/images/empty.svg?react';
|
|
|
|
import style from './Empty.module.scss';
|
|
|
|
interface EmptyProps {
|
|
text: string;
|
|
style?: CSSProperties;
|
|
}
|
|
|
|
export default function Empty(props: EmptyProps) {
|
|
const { text, ...rest } = props;
|
|
return (
|
|
<div className={style.emptyContainer} {...rest}>
|
|
<EmptyImage className={style.empty} />
|
|
<span className={style.text}>{text}</span>
|
|
</div>
|
|
);
|
|
}
|