import React, { useEffect, useRef } from 'react' export const TABS = [ { id: 'posts', label: 'Posts', icon: 'fa-newspaper' }, { id: 'artworks', label: 'Artworks', icon: 'fa-images' }, { id: 'stories', label: 'Stories', icon: 'fa-feather-pointed' }, { id: 'achievements', label: 'Achievements', icon: 'fa-trophy' }, { id: 'collections', label: 'Collections', icon: 'fa-layer-group' }, { id: 'about', label: 'About', icon: 'fa-id-card' }, { id: 'stats', label: 'Stats', icon: 'fa-chart-bar' }, { id: 'favourites', label: 'Favourites', icon: 'fa-heart' }, { id: 'activity', label: 'Activity', icon: 'fa-bolt' }, ] /** * ProfileTabs * Sticky tab navigation that: * - Scrolls horizontally on mobile * - Shows active underline / glow * - Updates URL query param on tab change */ export default function ProfileTabs({ activeTab, onTabChange }) { const navRef = useRef(null) const activeRef = useRef(null) useEffect(() => { if (activeRef.current && navRef.current) { activeRef.current.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'center' }) } }, [activeTab]) return (