Feedback
NotFound, Forbidden
Pages for a record that does not exist and for a page the user may not open, with built-in text in both languages. back links to the list; permission names the permission to ask for.
import { NotFound, Forbidden } from "@percentsa/ui";Examples
No access
Ask an administrator for access.Needed permission: Export orders
Code
export function PageStatesExample() {
const t = useT();
return (
<Stack gap={4} className="w-full max-w-lg">
<NotFound back={{ href: "#", label: t("Back to orders", "العودة إلى الطلبات") }} />
<Forbidden permission={t("Export orders", "تصدير الطلبات")} />
</Stack>
);
}