mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-13 03:13:47 +00:00
93fb48ea1c
* feat: operator view * chore: smoke test operator * refactor: small improvements from deepsource --------- Co-authored-by: arihanv <arihanvaranasi@gmail.com> Co-authored-by: arihanv <63890951+arihanv@users.noreply.github.com>
21 lines
486 B
TypeScript
21 lines
486 B
TypeScript
import { CSSProperties } from 'react';
|
|
|
|
import { ReactComponent as Emptyimage } from '@/assets/images/empty.svg';
|
|
|
|
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>
|
|
);
|
|
}
|