import { CellContext } from '@tanstack/react-table'; import { Download, Edit, Trash2 } from 'lucide-react'; import { Authorized } from '@/react/hooks/useUser'; import { Button } from '@@/buttons'; import { FileData, isFilesTableMeta } from '../types'; export function ActionsCell({ row: { original: item }, table, }: CellContext) { const { meta } = table.options; if (!isFilesTableMeta(meta)) { throw new Error('Invalid table meta'); } return (
{!item.Dir && ( )}
); }