import React from 'react'; type TabType = 'home' | 'custom' | 'history'; interface BottomNavProps { activeTab: TabType; onChange: (tab: TabType) => void; badgeCount?: number; historyRef?: React.RefObject; } const BottomNav: React.FC = ({ activeTab, onChange, badgeCount, historyRef }) => { const tabs: { id: TabType; icon: string; label: string; ref?: React.RefObject }[] = [ { id: 'home', icon: 'fa-house', label: 'خانه' }, { id: 'custom', icon: 'fa-microphone-lines', label: 'ساخت صدا' }, { id: 'history', icon: 'fa-clock-rotate-left', label: 'سوابق', ref: historyRef }, ]; return (
{/* Animated Rotating Border Container */}
{/* Spinning Gradient - Very Slow and Subtle Dark Tone */}
{/* Main Nav Content */}
{tabs.map((tab) => { const isActive = activeTab === tab.id; return ( ); })}
); }; export default BottomNav;