ยฉ 2026 Hedgehog Software, LLC
export const ProtectedRoute: ParentComponent = (props) => { const { authed } = useAuth(); return authed() ? ( props.children ) : ( <Navigate href={"/login"} state={{ from: location }} /> ); };