import React from 'react'; import type { A2UIResolvedComponent, A2UIClientAction } from '../../../main/a2ui/types'; interface A2UIComponentProps { component: A2UIResolvedComponent; surfaceId: string; onAction: (action: A2UIClientAction) => void; onDataChange?: (surfaceId: string, path: string, value: unknown) => void; renderChildren?: (children: A2UIResolvedComponent[]) => React.ReactNode; } export const A2UITable: React.FC = ({ component }) => { const columns = (component.properties.columns as string[]) ?? []; const rows = (component.boundValue as string[][]) ?? []; const title = component.properties.title as string | undefined; return (
{title &&

{title}

} {columns.map((column, colIndex) => ( ))} {rows.map((row, rowIndex) => ( {row.map((cell, cellIndex) => ( ))} ))}
{column}
{cell}
); };