mirror of
https://github.com/remvze/moodist.git
synced 2025-09-29 15:30:49 -04:00
23 lines
404 B
TypeScript
23 lines
404 B
TypeScript
import { MdNotes } from 'react-icons/md/index';
|
|
|
|
import { Item } from '../item';
|
|
|
|
import { useNoteStore } from '@/store';
|
|
|
|
interface NotepadProps {
|
|
open: () => void;
|
|
}
|
|
|
|
export function Notepad({ open }: NotepadProps) {
|
|
const note = useNoteStore(state => state.note);
|
|
|
|
return (
|
|
<Item
|
|
active={!!note.length}
|
|
icon={<MdNotes />}
|
|
label="Notepad"
|
|
onClick={open}
|
|
/>
|
|
);
|
|
}
|