moved to /dispatch and fixed Voice chat
This commit is contained in:
29
apps/dispatch/app/dispatch/page.tsx
Normal file
29
apps/dispatch/app/dispatch/page.tsx
Normal file
@@ -0,0 +1,29 @@
|
||||
"use client";
|
||||
|
||||
import { OpenButton } from "dispatch/_components/pannel/OpenButton";
|
||||
import { Pannel } from "dispatch/_components/pannel/Pannel";
|
||||
import MapToastCard2 from "dispatch/_components/toast/ToastCard";
|
||||
import { usePannelStore } from "_store/pannelStore";
|
||||
import { cn } from "helpers/cn";
|
||||
import dynamic from "next/dynamic";
|
||||
const Map = dynamic(() => import("./_components/map/Map"), { ssr: false });
|
||||
|
||||
export default () => {
|
||||
const { isOpen } = usePannelStore();
|
||||
return (
|
||||
<div
|
||||
className={cn(
|
||||
"relative flex-1 flex transition-all duration-500 ease",
|
||||
!isOpen && "w-[calc(100%+400px)]",
|
||||
isOpen && "w-[100%]",
|
||||
)}
|
||||
>
|
||||
{/* <MapToastCard2 /> */}
|
||||
<div className="flex-1 relative flex">
|
||||
<OpenButton />
|
||||
<Map />
|
||||
</div>
|
||||
<Pannel />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user