import { Plus } from "lucide-react"; import { Tab } from "./Tab"; import { Reorder } from "framer-motion"; interface TabData { id: string; title: string; url: string; active: boolean; favicon?: string; } interface TabBarProps { tabs: TabData[]; onTabClick: (id: string) => void; onTabClose: (id: string) => void; onNewTab: () => void; } export function TabBar({ tabs, onTabClick, onTabClose, onNewTab }: TabBarProps) { return (
{tabs.map((tab) => ( onTabClick(tab.id)} onClose={(e) => { e.stopPropagation(); onTabClose(tab.id); }} /> ))}
); }