settings.tsx 472 B

1234567891011121314151617181920212223
  1. import React from "react";
  2. import BodyWrapper from "../components/BodyWrapper";
  3. import Settings from "../components/Settings";
  4. import Footer from "../components/Footer";
  5. import { useStoreState } from "../store";
  6. const SettingsPage = () => {
  7. const { isAuthenticated } = useStoreState(s => s.auth);
  8. if (!isAuthenticated) {
  9. return null;
  10. }
  11. return (
  12. <BodyWrapper>
  13. <Settings />
  14. <Footer />
  15. </BodyWrapper>
  16. );
  17. };
  18. export default SettingsPage;