import { PanelLeftClose, PanelLeftOpen, Eye, MessageCircleCode, } from "lucide-react"; import classNames from "classnames"; import { Button } from "@/components/ui/button"; import { useEditor } from "@/hooks/useEditor"; const TABS = [ { value: "chat", label: "Chat", icon: MessageCircleCode, }, { value: "preview", label: "Preview", icon: Eye, }, ]; export const SwitchTab = ({ isMobile = false }: { isMobile?: boolean }) => { const { currentTab, setCurrentTab } = useEditor(); if (isMobile) { return (
{TABS.map((item) => ( ))}
); } return ( ); };