okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
7c5e84612
main
1import { tr } from '../lib/i18n' ; 2import { go , useLifecycle } from '../lib/store' ; 3import { Btn } from './ui' ; 4export function LifecycleNotice ({ showScope= true } :{ 5showScope ?:boolean ; 6}) { 7const status = useLifecycle (); 8if ( ! showScope && status . allowed ) 9return null ; 10return < div className = "lifecycle-notice small muted" >{ tr ( showScope ?< span >{ tr ( "Global \u00B7 all chats" )}</ span > :null )}{ tr ( ! status . allowed ?<>< span role = "status" >{ tr ( status . reason )}</ span >< Btn size = "sm" variant = "ghost" onClick = {() => go ( 'serving' )}>{ tr ( "View requests" )}</ Btn ></> :null )}</ div >; 11}