import routes, {privateRoutes} from 'global/constants/routes'

export const isPrivateRoute = (pathname) =>
    privateRoutes.some((route) => route.test(pathname))

export const isOnboardingRoute = (pathname) =>
    [routes.regex.ONBOARD, routes.regex.JOIN_COURSE_ONBOARD].some((route) =>
        route.test(pathname)
    )
