import React from 'react'; import type { SlateElementProps } from '@udecode/plate'; import { cn } from '@udecode/cn'; import { SlateElement } from '@udecode/plate'; import { type TTableCellElement, BaseTablePlugin } from '@udecode/plate-table'; export function TableCellElementStatic({ children, className, isHeader, style, ...props }: SlateElementProps & { isHeader?: boolean; }) { const { editor, element } = props; const { api } = editor.getPlugin(BaseTablePlugin); const { minHeight, width } = api.table.getCellSize({ element }); const borders = api.table.getCellBorders({ element }); return (
{children}
); } export function TableCellHeaderStaticElement(props: SlateElementProps) { return ; }