diff --git a/src/app/editor/page.tsx b/src/app/editor/page.tsx index 47f976f..1b0c8a6 100644 --- a/src/app/editor/page.tsx +++ b/src/app/editor/page.tsx @@ -17,12 +17,21 @@ import { } from "@dnd-kit/sortable"; import { CSS } from "@dnd-kit/utilities"; import { useEditorStore } from "@/features/editor/state/editorStore"; -import type { Block } from "@/features/editor/state/editorStore"; +import type { + Block, + TextBlockProps, + ButtonBlockProps, + ImageBlockProps, + SectionBlockProps, +} from "@/features/editor/state/editorStore"; export default function EditorPage() { const blocks = useEditorStore((state) => state.blocks); const selectedBlockId = useEditorStore((state) => state.selectedBlockId); const addTextBlock = useEditorStore((state) => state.addTextBlock); + const addButtonBlock = useEditorStore((state) => state.addButtonBlock); + const addImageBlock = useEditorStore((state) => state.addImageBlock); + const addSectionBlock = useEditorStore((state) => state.addSectionBlock); const updateBlock = useEditorStore((state) => state.updateBlock); const selectBlock = useEditorStore((state) => state.selectBlock); const replaceBlocks = useEditorStore((state) => state.replaceBlocks); @@ -166,6 +175,27 @@ export default function EditorPage() { > 텍스트 블록 추가 + + +

Text / Image / Button / Section 블록을 이 영역에서 추가할 수 있습니다.

@@ -214,66 +244,189 @@ export default function EditorPage() {

속성 패널

{selectedBlockId ? (
-
-

선택한 텍스트 블록 내용

-