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>
27 lines
585 B
TypeScript
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>
|
|
);
|
|
}
|