import React from "react"; import { FiArrowLeft, FiSidebar, FiSmartphone, FiUser } from "react-icons/fi"; import { useStore } from "zustand"; import { Button } from "~/components/ui/button"; import { cn } from "~/lib/utils"; import { usePageContext } from "~/renderer/context"; import { sidebarStore } from "../stores/sidebar"; import ActionButton from "~/components/ui/action-button"; import { previewStore } from "../stores/web-preview"; import { useProjectContext } from "../context/project"; const StatusBar = ({ className }: React.ComponentProps<"div">) => { const { user, urlPathname } = usePageContext(); const { isCompact } = useProjectContext(); const sidebarExpanded = useStore(sidebarStore, (i) => i.expanded); const previewExpanded = useStore(previewStore, (i) => i.open); if (isCompact) { return null; } return (
sidebarStore.getState().toggle()} /> previewStore.getState().toggle()} />
); }; export default StatusBar;