import { Show } from "solid-js"; import type { Note } from "@/api/client"; import type { NoteFileSource } from "@/lib/note-source"; import { NoteFilesPanel } from "@/components/notes/note-files-panel"; import { SidePanel } from "@/components/ui/side-panel"; import { toRichTextHtml } from "@/lib/rich-text"; import { useT } from "@/stores/preferences-context"; export function NoteReaderPanel(props: { note: Note | null; source: NoteFileSource; /** Read-only file section when false. Defaults to true. */ canManage?: boolean; open: boolean; onOpenChange: (open: boolean) => void; }) { const t = useT(); const note = () => props.note; return ( {(n) => (
{t("notes.noContent")}

} >
)}
); }