import { TodosPage } from "@/components/features/todos/TodosPage";
import { useRoleAccess } from "@/hooks/useRoleAccess";
import { AccessDenied } from "@/components/features/auth/AccessDenied";

const Todos = () => {
  const { isManager } = useRoleAccess();
  if (!isManager) return <AccessDenied />;
  return <TodosPage />;
};

export default Todos;
