import type { CSSProperties, ReactNode } from 'react' import MDancingTrek, { type TrekScene, type TrekMood } from '../../mobile/components/MDancingTrek' /** * The one desktop empty state: the TREK mascot acting out the page's scene with * a single title beneath it — no subtitle, one uniform look everywhere. * * The mascot is monochrome and drives its colours off two mobile tokens * (`--m-ink` body / `--m-bg` cutouts) that only exist inside the mobile shell, * so we map them onto the desktop palette here. Its `.trek-*` choreography is * global CSS, so it animates outside the shell as-is. `surface` should match the * background the state sits on so the cut-out eyes read as holes (default: card). * * `layout="row"` puts the mascot beside the title with tight padding, for short * content-sized panels (the Atlas glass pill) where the stacked look towers over * the sibling states. */ export default function EmptyState({ scene = 'idle', mood, title, size = 104, surface = 'var(--bg-card)', layout = 'stack', className = '', action, }: { scene?: TrekScene mood?: TrekMood title: string size?: number surface?: string layout?: 'stack' | 'row' className?: string /** Optional call to action under the title, for states that have an obvious next step. */ action?: ReactNode }) { const layoutClasses = layout === 'row' ? 'flex flex-row items-center justify-center gap-3 px-6 py-3' : 'flex flex-col items-center justify-center gap-3 px-6 py-12 text-center' return (
{title}
{action}