import { TFile } from "obsidian"; import { NoteStatus } from "@/types/noteStatus"; import { StatusDisplay } from "@/components/atoms/StatusDisplay"; import { GroupLabel } from "@/components/atoms/GroupLabel"; interface CurrentNoteInfo { file: TFile | null; statuses: Record; lastModified: number; } interface CurrentNoteSectionProps { currentNote: CurrentNoteInfo; } export const CurrentNoteSection = ({ currentNote, }: CurrentNoteSectionProps) => { return (

Current Note

{currentNote.file ? ( <>
{currentNote.file.basename}
{currentNote.file.path}
Last modified:{" "} {new Date( currentNote.lastModified, ).toLocaleString()}
{Object.entries(currentNote.statuses).map( ([tag, statuses]) => (
{statuses.length > 0 ? ( statuses.map((status) => ( )) ) : ( No status assigned )}
), )}
) : (
No note currently active
)}
); };