petalbid-frontend
    Preparing search index...

    Props for the ProtectedRoute component.

    interface ProtectedRouteProps {
        allowedRoles?: UserRole[];
        children: ReactNode;
    }
    Index

    Properties

    allowedRoles?: UserRole[]

    An optional array of user roles allowed to access this route. If not provided, any authenticated user can access it.

    children: ReactNode

    The component or elements to render if the user is authorized.