diff --git a/src/pages/ShowFeelingsPage/components/NoteModal.tsx b/src/pages/ShowFeelingsPage/components/NoteModal.tsx new file mode 100644 index 000000000..a40ce9674 --- /dev/null +++ b/src/pages/ShowFeelingsPage/components/NoteModal.tsx @@ -0,0 +1,54 @@ +import React, { useState } from "react"; + +import ZModal from "@src/common/ZModal"; + +const NoteModal = ({ + open, + defaultValue, + saveNote, +}: { + open: boolean; + defaultValue?: string; + saveNote: (note?: string) => Promise; +}) => { + const [value, setValue] = useState(defaultValue || ""); + return ( + +

Feeling Note

+
{ + await saveNote(value); + }} + style={{ display: "flex", flexDirection: "column", gap: 12 }} + > +