import type { ReactNode } from 'react'; import { Center, Stack, Text } from '@mantine/core'; import { FreightVisual, type FreightVisualVariant } from './FreightVisual'; interface VisualEmptyStateProps { variant?: FreightVisualVariant; title: string; description?: string; action?: ReactNode; } /** Friendly empty state with a small freight illustration. */ export function VisualEmptyState({ variant = 'empty', title, description, action, }: VisualEmptyStateProps) { return (
{title} {description && ( {description} )} {action}
); }