import { SelectOptionCellDataPB } from '@/services/backend'; import { useCell } from '../_shared/database-hooks/useCell'; import { CellIdentifier } from '$app/stores/effects/database/cell/cell_bd_svc'; import { CellCache } from '$app/stores/effects/database/cell/cell_cache'; import { FieldController } from '$app/stores/effects/database/field/field_controller'; import { getBgColor } from '$app/components/_shared/getColor'; export const BoardOptionsCell = ({ cellIdentifier, cellCache, fieldController, }: { cellIdentifier: CellIdentifier; cellCache: CellCache; fieldController: FieldController; }) => { const { data } = useCell(cellIdentifier, cellCache, fieldController); return (
{(data as SelectOptionCellDataPB | undefined)?.select_options?.map((option, index) => (
{option?.name || ''}
)) || ''}  
); };