'use client'; import * as React from 'react'; import { useMarkToolbarButton, useMarkToolbarButtonState } from 'platejs/react'; import { ToolbarButton } from '@/components/ui/toolbar/Toolbar'; export function MarkToolbarButton({ clear, nodeType, ...props }: React.ComponentProps & { nodeType: string; clear?: string[] | string; }) { const state = useMarkToolbarButtonState({ clear, nodeType }); const { props: buttonProps } = useMarkToolbarButton(state); return ; }