"use client"; import { motion } from "framer-motion"; import { Home, Cpu, CheckSquare, Settings } from "lucide-react"; interface Props { active: string; onChange: (tab: string) => void; } const TABS = [ { id: "home", label: "Главная", icon: Home, color: "#6366f1" }, { id: "devices", label: "Устройства", icon: Cpu, color: "#3b82f6" }, { id: "tasks", label: "Задачи", icon: CheckSquare, color: "#8b5cf6" }, { id: "settings", label: "Настройки", icon: Settings, color: "#10b981" }, ]; export default function BottomNav({ active, onChange }: Props) { return ( {TABS.map((tab) => { const Icon = tab.icon; const isActive = active === tab.id; return ( onChange(tab.id)} className="flex flex-col items-center gap-1.5 px-8 py-2 rounded-2xl relative" whileTap={{ scale: 0.85 }} > {isActive && ( )} {tab.label} ); })} ); }