{t(`errors.setup.${step}`)}
{step === SetupStep.MissingAdminAccount && ( } /> )}import { Main } from "@expo/html-elements"; import { type QueryPage, SetupStep } from "@kyoo/models"; import { Button, Icon, Link, P, ts } from "@kyoo/primitives"; import Register from "@material-symbols/svg-400/rounded/app_registration.svg"; import { useEffect } from "react"; import { useTranslation } from "react-i18next"; import { useRouter } from "solito/router"; import { useYoshiki } from "yoshiki/native"; import { Navbar, NavbarProfile } from "../navbar"; import { KyooLongLogo } from "../navbar/icon"; export const SetupPage: QueryPage<{ step: SetupStep }> = ({ step }) => { const { css } = useYoshiki(); const { t } = useTranslation(); const router = useRouter(); const isValid = Object.values(SetupStep).includes(step) && step !== SetupStep.Done; useEffect(() => { if (!isValid) router.replace("/"); }, [isValid, router]); if (!isValid) return
Loading...
; return ({t(`errors.setup.${step}`)}
{step === SetupStep.MissingAdminAccount && ( } /> )}