()
| 58 | } |
| 59 | |
| 60 | const useHeaders = () => { |
| 61 | const { t } = useTranslation('common') |
| 62 | |
| 63 | const HEADER_LINKS: Array<{ href: string; label: string; target?: string }> = |
| 64 | useMemo( |
| 65 | () => [ |
| 66 | { |
| 67 | href: 'https://github.com/futantan/OpenGpt', |
| 68 | label: '⭐️ Star on GitHub', |
| 69 | target: '_blank', |
| 70 | }, |
| 71 | { href: '/usage', label: '💸 Usage' }, |
| 72 | { |
| 73 | href: 'https://l5oj8ohzdp.feishu.cn/share/base/form/shrcnqfgna9DRRNsEy3rRaqiJCf', |
| 74 | label: '🔥 ' + t('give_feedack'), |
| 75 | target: '_blank', |
| 76 | }, |
| 77 | { |
| 78 | href: 'https://b.jimmylv.cn?ref=opengpt', |
| 79 | label: t('bibigpt'), |
| 80 | target: '_blank', |
| 81 | }, |
| 82 | // { href: '#testimonials', label: '用户评价' }, |
| 83 | // { href: '#pricing', label: '价格' }, |
| 84 | ], |
| 85 | [t] |
| 86 | ) |
| 87 | return HEADER_LINKS |
| 88 | } |
| 89 | |
| 90 | function MobileNavigation() { |
| 91 | const HEADER_LINKS = useHeaders() |
no outgoing calls
no test coverage detected