/** * Content Templates' four views — shared between the hub (`index.tsx`, which * lists them as rows) and each one's own mounted leaf (`tab-section.tsx`), so * the label/icon/blurb stay in one place. */ import { __ } from '@wordpress/i18n'; import { List, FileText, File, Search, Square, PanelLeft, PanelRight, Maximize, AlignJustify, StretchHorizontal, LayoutGrid, } from 'lucide-react'; import type { LucideIcon } from 'lucide-react'; export const INHERIT = 'inherit'; // The views this workspace covers, in feed → detail order. Icons and copy are // our own; the underlying context keys match Layout_Context on the PHP side. export const VIEWS: Array< { context: string; label: string; icon: LucideIcon; blurb: string; /** The hub card's one line — what you'll find inside, not what it is. */ summary: string; } > = [ { context: 'archive', label: __( 'Post Feed', 'aureon' ), icon: List, blurb: __( 'Your blog index and category, tag, author and date archives.', 'aureon' ), summary: __( 'Your blog index and category, tag, author and date archives.', 'aureon' ), }, { context: 'post', label: __( 'Article', 'aureon' ), icon: FileText, blurb: __( 'A single blog post.', 'aureon' ), summary: __( 'Single post layout and meta information.', 'aureon' ), }, { context: 'page', label: __( 'Page', 'aureon' ), icon: File, blurb: __( 'A standalone page.', 'aureon' ), summary: __( 'Static pages layout and options.', 'aureon' ), }, { context: 'search', label: __( 'Search', 'aureon' ), icon: Search, blurb: __( 'The search results view.', 'aureon' ), summary: __( 'Search results layout and behavior.', 'aureon' ), }, ]; // Which half of the blog settings, if any, a view owns. export const BLOG_SCOPE: Record< string, 'archive' | 'single' > = { archive: 'archive', post: 'single', }; // Icons for the layout segmented controls — our pairing, not tied to any // option list order. export const CONTAINER_ICONS: Record< string, LucideIcon > = { inherit: AlignJustify, full: Maximize, boxed: Square, narrow: StretchHorizontal, fluid: LayoutGrid, }; export const SIDEBAR_ICONS: Record< string, LucideIcon > = { inherit: AlignJustify, none: Square, left: PanelLeft, right: PanelRight, };