mirror of
https://github.com/ente-io/ente.git
synced 2025-06-01 15:08:58 +00:00
20 lines
612 B
TypeScript
20 lines
612 B
TypeScript
import { VerticallyCentered } from "@ente/shared/components/Container";
|
|
import { t } from "i18next";
|
|
import { useEffect, useState } from "react";
|
|
|
|
import { PageProps } from "@ente/shared/apps/types";
|
|
import EnteSpinner from "@ente/shared/components/EnteSpinner";
|
|
|
|
export default function NotFound({ appContext }: PageProps) {
|
|
const [loading, setLoading] = useState(true);
|
|
useEffect(() => {
|
|
appContext.showNavBar(true);
|
|
setLoading(false);
|
|
}, []);
|
|
return (
|
|
<VerticallyCentered>
|
|
{loading ? <EnteSpinner /> : t("NOT_FOUND")}
|
|
</VerticallyCentered>
|
|
);
|
|
}
|