okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
a1cc285fa
main
1import { tr } from '../lib/i18n' ; 2import { Icon } from './ui' ; 3import type { NativeState } from '../lib/native' ; 4 5/** The app could not find or recognise an engine for this computer (none installed and none in the feed, another card family, a driver that is too old). It still downloads the model 6* (owner decision 2026-10-18) and says so before and during the download; loading says the same with the next step. */ 7export const engineMissing = ( native :NativeState | null | undefined ) => !! native ?. engine && native . engine . usable === false ; 8 9export function EngineWarning ({ native} :{ native :NativeState | null | undefined }) { 10if ( ! engineMissing ( native )) return null ; 11if ( native ?. engine ?. wrongMake && native . engine . notice ) return < div className = "engine-warning" role = "status" >< Icon name = "info" size = { 18 }/>< div >< p >{ native . engine . notice }</ p ></ div ></ div >; 12return < div className = "engine-warning" role = "status" >< Icon name = "info" size = { 18 }/>< div >< p >{ tr ( "Strata didn’t recognise an engine for this computer. The model will download, but it may not run until the right engine is installed (Settings → About)." )}</ p >{ native ?. engine ?. notice ?< small className = "muted" >{ native . engine . notice }</ small > :null }</ div ></ div >; 13}