import { Details2Svg } from '../_shared/svg/Details2Svg'; import AddSvg from '../_shared/svg/AddSvg'; import { BoardCard } from './BoardCard'; import { RowInfo } from '../../stores/effects/database/row/row_cache'; import { DatabaseController } from '../../stores/effects/database/database_controller'; import { RowPB } from '@/services/backend'; import { Draggable } from 'react-beautiful-dnd'; export const BoardBlock = ({ viewId, controller, title, rows, allRows, onNewRowClick, }: { viewId: string; controller: DatabaseController; title: string; rows: RowPB[]; allRows: readonly RowInfo[]; onNewRowClick: () => void; }) => { return (
{title} ()
{rows.map((row_pb, index) => { const row = allRows.find((r) => r.row.id === row_pb.id); return row ? ( {(provided, snapshot) => (
)}
) : ( ); })}
); };