import { useSignal } from '@preact/signals'; interface CreateNoteModalProps { isOpen: boolean; onClickSave: (newNoteName: string) => Promise; onClose: () => void; } export default function CreateNoteModal( { isOpen, onClickSave, onClose }: CreateNoteModalProps, ) { const newNoteName = useSignal(''); return ( <>

Create New Note

{ newNoteName.value = event.currentTarget.value; }} placeholder='Amazing' />
); }