import { useState } from 'react'; import { useStore } from '@nanostores/react'; import { notesStore, addNote, removeNote } from '~/lib/stores/notes'; import { Button } from '~/components/ui/Button'; import { classNames } from '~/utils/classNames'; export default function NotesTab() { const notes = useStore(notesStore); const [noteText, setNoteText] = useState(''); const handleAdd = () => { const text = noteText.trim(); if (!text) return; addNote(text); setNoteText(''); }; return (