From 4c5baa91baff7cb345ab1bb430a9503123cf994e Mon Sep 17 00:00:00 2001 From: itizawa Date: Sun, 17 Dec 2023 22:53:27 +0900 Subject: [PATCH] =?UTF-8?q?TaskEditor=20=E3=82=92=E4=BD=9C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domains/Task/TaskEditor/TaskEditor.tsx | 17 +++++++++++++++++ .../domains/Task/TaskEditor/index.ts | 1 + 2 files changed, 18 insertions(+) create mode 100644 src/app/_components/domains/Task/TaskEditor/TaskEditor.tsx create mode 100644 src/app/_components/domains/Task/TaskEditor/index.ts diff --git a/src/app/_components/domains/Task/TaskEditor/TaskEditor.tsx b/src/app/_components/domains/Task/TaskEditor/TaskEditor.tsx new file mode 100644 index 0000000..d7f6008 --- /dev/null +++ b/src/app/_components/domains/Task/TaskEditor/TaskEditor.tsx @@ -0,0 +1,17 @@ +'use client'; + +import { FC, useCallback } from 'react'; +import { Editor } from '~/app/_components/uiParts/Editor'; +import { Task } from '~/domains/Task'; + +type Props = { + task?: Task; +}; + +export const TaskEditor: FC = ({ task }) => { + const handleEditorChange = useCallback(async (body: string) => { + console.log(body); + }, []); + + return ; +}; diff --git a/src/app/_components/domains/Task/TaskEditor/index.ts b/src/app/_components/domains/Task/TaskEditor/index.ts new file mode 100644 index 0000000..f83b3d0 --- /dev/null +++ b/src/app/_components/domains/Task/TaskEditor/index.ts @@ -0,0 +1 @@ +export { TaskEditor } from './TaskEditor';