"use client"; /** * Settings → Layout → Documents. * * Reached from the wrench beside the vault's Upload button, the way the * illness journal's wrench reaches its own page. Two choices, each in its own * card with the toggle in the header's status slot (the illness page's * shape): the card/list view and the month arrangement. Both persist per user * through `/api/documents/inbound/layout`. */ import { LayoutGrid, Rows3, WrapText } from "lucide-react"; import { SettingsCardHeader } from "@/components/settings/_card-header"; import { SettingsCard } from "@/components/settings/settings-card"; import { ModuleViewToggle } from "@/components/module-list/module-view-toggle"; import { ViewToggle } from "@/components/ui/view-toggle"; import { useTranslations } from "@/lib/i18n/context"; import { useDocumentsLayout } from "@/lib/queries/use-documents-layout"; export function DocumentsSection() { const { t } = useTranslations(); const { layout, setView, setArrangement } = useDocumentsLayout(); return (