MCPcopy
hub / github.com/futantan/OpenGpt / useHeaders

Function useHeaders

src/components/Header.tsx:60–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58}
59
60const 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
90function MobileNavigation() {
91 const HEADER_LINKS = useHeaders()

Callers 2

MobileNavigationFunction · 0.85
HeaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected