'use client'; import { HTMLAttributes } from 'react'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; import { CreditCard, Key, User } from 'lucide-react'; import { cn } from '@documenso/ui/lib/utils'; import { Button } from '@documenso/ui/primitives/button'; import { useFeatureFlags } from '~/providers/feature-flag'; export type DesktopNavProps = HTMLAttributes; export const DesktopNav = ({ className, ...props }: DesktopNavProps) => { const pathname = usePathname(); const { getFlag } = useFeatureFlags(); const isBillingEnabled = getFlag('billing'); return ( Profile Password {isBillingEnabled && ( Billing )} ); };