'use client' import React from 'react' import type { Editor } from '@tiptap/react' import { Toggle } from '@/components/ui/toggle' import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip' import { Bold, Italic, Underline as UnderlineIcon, Strikethrough } from 'lucide-react' interface InlineStyleMenuProps { editor: Editor | null disabled?: boolean isBold: boolean isItalic: boolean isUnderline: boolean isStrike: boolean executeCommand: (command: () => void) => void } export function InlineStyleMenu({ editor, disabled, isBold, isItalic, isUnderline, isStrike, executeCommand }: InlineStyleMenuProps) { if (!editor) return null return ( <> executeCommand(() => editor.chain().focus().toggleBold().run())} disabled={disabled}>

굵게 (Ctrl+B)

executeCommand(() => editor.chain().focus().toggleItalic().run())} disabled={disabled}>

기울임 (Ctrl+I)

executeCommand(() => editor.chain().focus().toggleUnderline().run())} disabled={disabled}>

밑줄

executeCommand(() => editor.chain().focus().toggleStrike().run())} disabled={disabled}>

취소선

) }