import React from 'react'; import type { SlateElementProps } from '@udecode/plate'; import { cn } from '@udecode/cn'; import { SlateElement } from '@udecode/plate'; import { type TTableElement, BaseTablePlugin } from '@udecode/plate-table'; export const TableElementStatic = ({ children, className, ...props }: SlateElementProps) => { const { disableMarginLeft } = props.editor.getOptions(BaseTablePlugin); const marginLeft = disableMarginLeft ? 0 : props.element.marginLeft; return (
{children}
); };