refactor: empty state for cuesheet

This commit is contained in:
Carlos Valente
2025-07-16 20:56:35 +02:00
committed by Carlos Valente
parent 9618bec847
commit 90105a199a
4 changed files with 45 additions and 2 deletions
@@ -0,0 +1,20 @@
import EmptyImage from '../../../assets/images/empty.svg?react';
import style from './EmptyTableBody.module.scss';
interface EmptyTableBodyProps {
text: string;
}
export default function EmptyTableBody({ text }: EmptyTableBodyProps) {
return (
<tbody className={style.emptyContainer}>
<tr>
<td colSpan={99} className={style.emptyCell}>
<EmptyImage className={style.empty} />
{text && <span className={style.text}>{text}</span>}
</td>
</tr>
</tbody>
);
}