import { NotesSigal } from "../../signals" import notes from "../../signals/notes" import { updateLocalStorage } from "../../utils/localStorage" import { defaultClassName } from "./utils" export function StickyNoteButton() { function _handleClick(e: MouseEvent) { NotesSigal.default.addNote({ type: "note", title: "New Note", contents: "", position: { x: e.pageX - 100, y: e.pageY + (window.innerHeight / 2) - 100 }, dimensions: { w: 200, h: 200 } }) updateLocalStorage("notes", notes.notes.value) } return ( ) }