34 lines
783 B
TypeScript
34 lines
783 B
TypeScript
'use client';
|
|
|
|
import { Button } from '@/ui/Button';
|
|
import { Stack } from '@/ui/primitives/Stack';
|
|
import { Text } from '@/ui/Text';
|
|
|
|
interface NotFoundCallToActionProps {
|
|
label: string;
|
|
onClick: () => void;
|
|
}
|
|
|
|
/**
|
|
* NotFoundCallToAction
|
|
*
|
|
* Semantic component for the primary action on the 404 page.
|
|
* Follows "Precision Racing Minimal" theme with crisp styling.
|
|
*/
|
|
export function NotFoundCallToAction({ label, onClick }: NotFoundCallToActionProps) {
|
|
return (
|
|
<Stack gap={4} align="center">
|
|
<Button
|
|
variant="primary"
|
|
size="lg"
|
|
onClick={onClick}
|
|
>
|
|
{label}
|
|
</Button>
|
|
<Text size="xs" color="text-gray-500" uppercase letterSpacing="widest">
|
|
Telemetry connection lost
|
|
</Text>
|
|
</Stack>
|
|
);
|
|
}
|