import { Button } from '@/ui/Button'; import { Heading } from '@/ui/Heading'; import { Icon } from '@/ui/Icon'; import { Group } from '@/ui/Group'; import { Text } from '@/ui/Text'; import { ArrowLeft, LucideIcon } from 'lucide-react'; import React from 'react'; interface LeaderboardHeaderProps { title: string; description?: string; icon?: LucideIcon; onBack?: () => void; backLabel?: string; children?: React.ReactNode; } export function LeaderboardHeader({ title, description, icon, onBack, backLabel = 'Back', children, }: LeaderboardHeaderProps) { return ( {onBack && ( )} {icon && ( )} {title} {description && ( {description} )} {children} ); }