import { FC, PropsWithChildren } from "react"; interface RequireAuthProps extends PropsWithChildren { /** The path to navigate to if authentication failed */ loginPath: string; } /** * Wrapper for protected content * * If user is undefined, there could be two reasons: either it's the initial page load * and we are still loading the user object, or the user is not authenticated, so we discriminate these * two cases, and only return the children if the user object is available. * */ declare const RequireAuth: FC; export default RequireAuth;