import { StickyNote } from "lucide-react"; import { registerWidget } from "./WidgetRegistry"; import { GRID_SIZE, type NotesConfig, type WidgetComponentProps, } from "../types.js"; import { WidgetTitle } from "@termix/plugin-sdk/ui"; function NotesWidget({ widget, config }: WidgetComponentProps) { const { content, backgroundColor } = config; return (
} />
          {content || (
            Empty note...
          )}
        
); } registerWidget({ id: "notes", name: "Notes", description: "A text notes widget", category: "info", icon: , defaultConfig: { content: "" }, defaultSize: { w: GRID_SIZE * 10, h: GRID_SIZE * 8 }, minSize: { w: GRID_SIZE * 2, h: GRID_SIZE * 2 }, component: NotesWidget, }); export { NotesWidget };