Files
app/src/admin/components/Forbidden.tsx
BOHA 85d7ffaa14 feat(mui): migrate Forbidden off admin-* CSS
Re-skins the 403 fallback with MUI Box + kit EmptyState + kit Button
(component=Link). Czech text and routing preserved verbatim.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-07 08:37:09 +02:00

27 lines
585 B
TypeScript

import { Link } from "react-router-dom";
import Box from "@mui/material/Box";
import { EmptyState, Button } from "../ui";
export default function Forbidden() {
return (
<Box
sx={{
minHeight: "60vh",
display: "flex",
alignItems: "center",
justifyContent: "center",
}}
>
<EmptyState
title="403"
description="Nemáte oprávnění pro přístup k této stránce."
action={
<Button component={Link} to="/">
Zpět na Dashboard
</Button>
}
/>
</Box>
);
}