add base layout
This commit is contained in:
24
src/components/interaction-panel/chat.tsx
Normal file
24
src/components/interaction-panel/chat.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import { useAccountStore } from "@/contexts/AccountContext";
|
||||
import { Button } from "../ui/button";
|
||||
import { observer } from "mobx-react-lite";
|
||||
|
||||
export const Chat = observer(() => {
|
||||
const { isSandboxOpen, setIsSandboxOpen, isMainMenuOpen, setIsMainMenuOpen } =
|
||||
useAccountStore();
|
||||
|
||||
return (
|
||||
<div className="flex-1">
|
||||
<Button
|
||||
onClick={() => {
|
||||
setIsSandboxOpen(!isSandboxOpen);
|
||||
if (isMainMenuOpen && !isSandboxOpen) {
|
||||
setIsMainMenuOpen(false);
|
||||
}
|
||||
}}
|
||||
className="ml-10"
|
||||
>
|
||||
OPEN SANDBOX
|
||||
</Button>
|
||||
</div>
|
||||
);
|
||||
});
|
||||
Reference in New Issue
Block a user