import type { ReactNode } from 'react';
import { Activity } from 'lucide-react';
export function PageHeader({
title,
description,
actions,
}: {
title: string;
description?: string;
actions?: ReactNode;
}) {
return (
OPERATIONS / LIVE INTERFACE
{title}
{description ?
{description}
: null}
{actions ?
{actions}
: null}
);
}
export function Surface({
title,
actions,
children,
className = '',
}: {
title?: string;
actions?: ReactNode;
children: ReactNode;
className?: string;
}) {
return (
{title || actions ? (
{title ? (
{title}
) : }
{actions}
) : null}
{children}
);
}
export function Metric({
label,
value,
icon,
hint,
tone = 'default',
}: {
label: string;
value: number | string;
icon?: ReactNode;
hint?: string;
tone?: 'default' | 'info' | 'success' | 'warning' | 'danger';
}) {
return (
{label}
{value}
{hint ?
{hint}
: null}
{icon ?
{icon}
: null}
);
}