export type ProfileTab = 'activity' | 'following' | 'liked'; const TABS: { id: ProfileTab; label: string }[] = [ { id: 'activity', label: 'Activity' }, { id: 'following', label: 'Following' }, { id: 'liked', label: 'Liked' }, ]; interface ProfileTabsProps { activeTab: ProfileTab; onChange: (tab: ProfileTab) => void; } const ProfileTabs = ({ activeTab, onChange }: ProfileTabsProps) => (
{TABS.map((tab) => { const active = tab.id === activeTab; return ( ); })}
); export default ProfileTabs;