import { TableCell, TableRow } from "@/components/ui/table";
import { useGlobal } from "@/context/global";
import { ColumnDef } from "@tanstack/react-table";

type TTableListNoResult = {
  columns: ColumnDef<any>[];
};

export default function TableListNoResult({ columns }: TTableListNoResult) {
  const { dict } = useGlobal();

  return (
    <TableRow>
      <TableCell colSpan={columns.length} className="h-24 text-center">
        {dict.pages.project_list.table.data.no_result}
      </TableCell>
    </TableRow>
  );
}
