// buttons import { ToggleBoldButton, ToggleItalicButton, ToggleUnderlineButton, ToggleStrikeButton, ToggleOrderedListButton, ToggleBulletListButton, ToggleCodeButton, ToggleHeadingButton, useActive, } from "@remirror/react"; import { EditorState } from "remirror"; type Props = { gptOption?: boolean; editorState: Readonly; }; export const CustomFloatingToolbar: React.FC = ({ gptOption, editorState }) => { const active = useActive(); return (
{gptOption && (
)}
); };