(feat): move call context to zustand

(feat): add actions, basic call page
This commit is contained in:
Alois 2026-04-29 14:49:53 +02:00
commit 413764f33e
17 changed files with 673 additions and 382 deletions

View file

@ -1,3 +1,3 @@
export default function View() {
return <div>Grid</div>;
return <div className="w-full h-full bg-red-500">Grid</div>;
}

View file

@ -1,8 +1,12 @@
import Actions from "../../components/actions";
import TopBar from "../../components/top";
export default function Layout({ children }: { children: React.ReactNode }) {
return (
<div>
Layout
{children}
<div className="w-full h-full flex flex-col bg-green-500">
<TopBar />
<div className="w-full h-full">{children}</div>
<Actions />
</div>
);
}

View file

@ -1,7 +1,7 @@
import { useCall } from "../context";
import { useCall } from "../store";
export default function Preview() {
const { currentCallData } = useCall();
const currentCallData = useCall((state) => state.currentCallData);
return <div>Preview View {JSON.stringify(currentCallData?.users)}</div>;
}