diff --git a/ui/src/components/review/client/block-type-actions.tsx b/ui/src/components/review/client/block-type-actions.tsx new file mode 100644 index 00000000..74c6ae52 --- /dev/null +++ b/ui/src/components/review/client/block-type-actions.tsx @@ -0,0 +1,59 @@ +'use client'; + +import type { LexicalEditor } from 'lexical'; +import Image from 'next/image'; + +import { IconButton } from '@/components/common/client/icon-button'; + +import { useBlockTypeActions } from '@/hooks/editor/use-block-type-actions'; + +export function BlockTypeActions({ editor }: { editor: LexicalEditor | undefined | null }) { + const { + blockType, + formatParagraph, + formatQuote, + formatHeading, + formatBulletList, + formatNumberedList, + } = useBlockTypeActions({ editor }); + + return ( +
+ } + /> + } + /> + formatHeading('h1')} + icon={Heading 1} + /> + formatHeading('h2')} + icon={Heading 2} + /> + formatHeading('h3')} + icon={Heading 3} + /> + } + /> + } + /> +
+ ); +}