import { Star } from 'lucide-react'; import { useTranslation } from 'react-i18next'; interface Props { active: boolean; onChange: (next: boolean) => void; /** 'default' = icon + label, regular padding (Albums toolbar). * 'compact' = icon-only, 0.5rem padding (Artists view-mode buttons). * 'small' = icon + label, 4px/14px padding + 12px text (AdvancedSearch tabs). */ size?: 'default' | 'compact' | 'small'; } export default function StarFilterButton({ active, onChange, size = 'default' }: Props) { const { t } = useTranslation(); const tooltip = active ? t('common.favoritesTooltipOn') : t('common.favoritesTooltipOff'); const activeStyle = active ? { background: 'var(--accent)', color: 'var(--ctp-crust)' } : {}; if (size === 'compact') { return ( ); } if (size === 'small') { return ( ); } return ( ); }