score:0

Accepted answer
export const HeaderHelper = (props) => {
  const [user, token, setToken] = useUser();
  const navigate = useNavigate();
  return (
    <Header
      {...props}
      navigate={navigate}
      token={token}
      setToken={setToken}
      user={user}
    />
  );
}

Related Query

More Query from same tag