import { useUserStore } from "@/state/user"; import { useRef, useState } from "react"; import { SettingsDialog } from "./settings/SettingsDialog"; import { UsernameSearch } from "./UsernameSearch"; import { UnifiedChatsList } from "./UnifiedChatsList"; import { ChatHeader } from "./ChatHeader"; import { MaterialBottomAppBar, MaterialFab, MaterialIconButton, type MDUIBottomAppBar } from "@/utils/material"; import styles from "@/pages/chat/css/left-panel.module.scss"; function BottomAppBar({ bottomAppBarRef }: { bottomAppBarRef?: React.RefObject }) { const [settingsOpen, onSettingsOpenChange] = useState(false); const { logout } = useUserStore(); return ( <> onSettingsOpenChange(true)} />
); } export function LeftPanel() { const containerRef = useRef(null); const headerRef = useRef(null); const bottomAppBarRef = useRef(null); return (
); }