'use client'; import type { ReactNode } from 'react'; import type { PPTTableElement } from '@openmaic/dsl'; import { StaticTable } from './StaticTable'; export interface BaseTableElementProps { elementInfo: PPTTableElement; target?: string; renderContent?: (element: PPTTableElement, defaultContent: ReactNode) => ReactNode; } export function BaseTableElement({ elementInfo, target, renderContent }: BaseTableElementProps) { const defaultContent = ; return (
{renderContent?.(elementInfo, defaultContent) ?? defaultContent}
); }