'use client'; import Link from 'next/link'; interface Props { current: 'mine' | 'shared' | 'all'; counts: { mine: number; shared: number }; } export function GroupsTabs({ current, counts }: Props) { const tabs: { key: Props['current']; label: string; href: string }[] = [ { key: 'mine', label: `My Groups (${counts.mine})`, href: '/groups' }, { key: 'shared', label: `Shared with me (${counts.shared})`, href: '/groups?tab=shared' }, ]; return (
{tabs.map((t) => ( {t.label} ))}
); }