import useSWR from 'swr'; import { api } from '@/lib/api-client'; export function useSellerAnalytics(sellerId?: string) { const { data } = useSWR(sellerId ? `/analytics/dashboard?sellerId=${sellerId}` : null, api.get); return { analytics: data || null }; }