teableio/teable

View on GitHub
apps/nextjs-app/src/features/app/blocks/table-list/NoDraggableList.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import { useTableId, useTables } from '@teable/sdk';
import { TableListItem } from './TableListItem';

export const NoDraggableList: React.FC = () => {
  const tables = useTables();
  const tableId = useTableId();

  return (
    <ul>
      {tables.map((table) => (
        <li key={table.id}>
          <TableListItem table={table} isActive={table.id === tableId} />
        </li>
      ))}
    </ul>
  );
};