| 1 | import type { MobileMyChannelsButtonProps } from '../types' |
| 2 | /** |
| 3 | * MobileMyChannelsButton - 移动端我的频道按钮 |
| 4 | */ |
| 5 | import { Tv } from 'lucide-react' |
| 6 | import { useTransClient } from '@/app/i18n/client' |
| 7 | import { cn } from '@/utils/className' |
| 8 | |
| 9 | export function MobileMyChannelsButton({ |
| 10 | onClose, |
| 11 | onOpenMyChannels, |
| 12 | }: MobileMyChannelsButtonProps) { |
| 13 | const { t } = useTransClient('account') |
| 14 | |
| 15 | return ( |
| 16 | <button |
| 17 | onClick={() => { |
| 18 | onClose() |
| 19 | onOpenMyChannels() |
| 20 | }} |
| 21 | data-testid="mobile-my-channels" |
| 22 | className={cn( |
| 23 | 'flex items-center gap-3 px-4 py-3 rounded-lg text-base font-medium transition-all w-full', |
| 24 | 'text-muted-foreground hover:bg-brand-cyan/10 hover:text-brand-cyan', |
| 25 | )} |
| 26 | > |
| 27 | <span className="flex items-center justify-center text-brand-cyan"> |
| 28 | <Tv size={20} /> |
| 29 | </span> |
| 30 | <span>{t('channelManager.myChannels')}</span> |
| 31 | </button> |
| 32 | ) |
| 33 | } |
| 34 |