import { tr } from '../lib/i18n'; import { Icon } from './ui'; import type { NativeState } from '../lib/native'; /** 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 * (owner decision 2026-10-18) and says so before and during the download; loading says the same with the next step. */ export const engineMissing = (native: NativeState | null | undefined) => !!native?.engine && native.engine.usable === false; export function EngineWarning({ native }: { native: NativeState | null | undefined }) { if (!engineMissing(native)) return null; if (native?.engine?.wrongMake && native.engine.notice) return
{native.engine.notice}
{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).")}
{native?.engine?.notice ? {native.engine.notice} : null}