// Shared empty/trouble states + the States gallery screen
function EmptyState({ icon, title, line, action, onAction, compact }) {
const DS = window.CommiTeaDesignSystem_20e63b;
const { Button, Icon } = DS;
return (
{title}
{line}
{action ?
: null}
);
}
function OfflineBanner({ retryIn }) {
const DS = window.CommiTeaDesignSystem_20e63b;
const { Icon } = DS;
return (
Gitea isn't answering. I'll keep trying and say nothing more about it.
retry in {retryIn || '0:12'} · reads from cache
);
}
function ModelAwayState() {
const DS = window.CommiTeaDesignSystem_20e63b;
const { Icon, Badge } = DS;
return (
Reginald
model offline
queued: 1 directive
The model is away from its desk. Reads still work; writes will wait their turn.
);
}
function StatesScreen({ onCapture }) {
const DS = window.CommiTeaDesignSystem_20e63b;
const { Button, Badge, Icon } = DS;
const Specimen = ({ label, children }) => (
);
return (
Empty
Trouble
webhooks down
polling every 2 min · updates may lag
);
}
Object.assign(window, { EmptyState, OfflineBanner, ModelAwayState, StatesScreen });