import { observer } from "mobx-react-lite"; import { useParams } from "react-router-dom"; import { useCallback } from "preact/hooks"; import { ServerList } from "@revoltchat/ui"; import { useApplicationState } from "../../../mobx/State"; import { useIntermediate } from "../../../context/intermediate/Intermediate"; import { useClient } from "../../../controllers/client/ClientController"; /** * Server list sidebar shim component */ export default observer(() => { const client = useClient(); const state = useApplicationState(); const { openScreen } = useIntermediate(); const { server: server_id } = useParams<{ server?: string }>(); const createServer = useCallback( () => openScreen({ id: "special_input", type: "create_server", }), [], ); return ( ); });