'use client'; import { Paper, Scroller, Tabs } from '@mantine/core'; import TabItem from './TabItem'; import { usePathname } from 'next/navigation'; import { useFeatureFlags } from '@/lib/clientFeatureFlags'; import useProfile from '../../lib/queries/useProfile'; interface Props { handle: string; } export default function ProfileTabs(props: Props) { const pathname = usePathname(); const segment = pathname.split('/')[3]; const currentTab = segment || 'profile'; // treat base route as 'profile' const basePath = `/profile/${props.handle}`; const { data: featureFlags } = useFeatureFlags(); const { data: profile } = useProfile({ didOrHandle: props.handle, includeStats: true, }); return ( Profile Cards Collections Connections Network {featureFlags?.graphView && ( Graph )} ); }