refactor: improve empty state for project info

This commit is contained in:
Carlos Valente
2024-12-13 10:08:11 +01:00
committed by Carlos Valente
parent 7915cc822d
commit c1d53b0e55
3 changed files with 61 additions and 1 deletions
@@ -0,0 +1,20 @@
import { CSSProperties } from 'react';
import Empty from './Empty';
import style from './EmptyPage.module.scss';
interface EmptyPageProps {
text?: string;
style?: CSSProperties;
}
export default function EmptyPage(props: EmptyPageProps) {
const { text, ...rest } = props;
return (
<div className={style.page}>
<Empty text={text} {...rest} />
</div>
);
}