import { tr } from '../lib/i18n'; import { go, useLifecycle } from '../lib/store'; import { Btn } from './ui'; export function LifecycleNotice({ showScope = true }: { showScope?: boolean; }) { const status = useLifecycle(); if (!showScope && status.allowed) return null; return
{tr(showScope ? {tr("Global \u00B7 all chats")} : null)}{tr(!status.allowed ? <>{tr(status.reason)} go('serving')}>{tr("View requests")} : null)}
; }