'use client' import { useNoteEditorContext } from './note-editor-context' import { LabelBadge } from '../label-badge' import { GhostTags } from '../ghost-tags' import { cn } from '@/lib/utils' export function NoteMetadataSection() { const { state, actions, readOnly } = useNoteEditorContext() return (
{/* Labels */} {state.labels.length > 0 && (
{state.labels.map((label) => ( actions.handleRemoveLabel(label)} /> ))}
)} {/* Ghost Tags - only show in dialog mode */} {!readOnly && state.noteType !== 'richtext' && ( )} {/* Color indicator */}
Color:
{/* Size indicator */}
Size: {state.size}
) }