import { Navigate, Outlet } from 'react-router-dom'

export default function RequireAuth() {
  const token = sessionStorage.getItem('manager_token')
  return token ? <Outlet /> : <Navigate to="/login" replace />
}
