"use client"; import styles from "./settings.module.css"; import { Suspense, useEffect, useState } from "react"; import { useUserConfig } from "../common/auth"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardFooter, CardHeader, } from "@/components/ui/card"; import NavMenu from "../components/navMenu/navMenu"; import SidePanel from "../components/sidePanel/chatHistorySidePanel"; import Loading from "../components/loading/loading"; interface CardComponentProps { header: string; children: React.ReactNode; footer: React.ReactNode; } const CardComponent: React.FC = ({ header, children, footer }) => { return ( {header} {children} {footer} ); }; export default function SettingsView() { const [title, setTitle] = useState("Settings"); const [isMobileWidth, setIsMobileWidth] = useState(false); const userConfig = useUserConfig(true); const cardClassName = "w-1/3 grid grid-flow-column border border-gray-300 shadow-md rounded-lg"; useEffect(() => { setIsMobileWidth(window.innerWidth < 786); const handleResize = () => setIsMobileWidth(window.innerWidth < 786); window.addEventListener('resize', handleResize); return () => window.removeEventListener('resize', handleResize); }, []); return (
{title}
}>
Profile
Name
Content
Files Manage your synced files Github Set repositories to index Notion Sync your Notion pages Language
); }