diff --git a/ui/src/components/review/client/history-actions.tsx b/ui/src/components/review/client/history-actions.tsx new file mode 100644 index 00000000..06ff0877 --- /dev/null +++ b/ui/src/components/review/client/history-actions.tsx @@ -0,0 +1,35 @@ +'use client'; + +import { ArrowUturnLeftIcon, ArrowUturnRightIcon } from '@heroicons/react/24/outline'; +import { IS_APPLE } from '@lexical/utils'; +import type { LexicalEditor } from 'lexical'; + +import { IconButton } from '@/components/common/client/icon-button'; + +import { useHistoryActions } from '@/hooks/editor/use-history-actions'; + +export function HistoryActions({ editor }: { editor: LexicalEditor | undefined | null }) { + const { undo, redo, canRedo, canUndo } = useHistoryActions(editor); + + return ( +