import { ShieldBan } from 'lucide-react'; import type { FetchError } from '../../lib/http'; type RestrictedPageProps = { error: FetchError; }; export function RestrictedPage(props: RestrictedPageProps) { const { error } = props; if (error.status === 404) { return ( } title="Roadmap not found" message="The roadmap you are looking for does not exist or has been deleted." /> ); } return ( } title="Restricted Access" message={error?.message} /> ); } type ErrorMessageProps = { title: string; message: string; icon: React.ReactNode; }; function ErrorMessage(props: ErrorMessageProps) { const { title, message, icon } = props; return (
{icon}

{title}

{message || 'This roadmap is not available for public access.'}

← Go back to home
); }