import { useRouter } from 'next/router'
const FEEDBACK_LINK_WITH_TRANSLATIONS = {
'en-US': 'Question? Give us feedback →',
'zh-CN': '有疑问?给我们反馈 →',
}
export default {
projectLink: 'https://github.com/Brooooooklyn/Image',
docsRepositoryBase: 'https://github.com/Brooooooklyn/Image/blob/main/website/pages',
projectChatLink: 'https://discord.gg/w8DAD7auZc',
titleSuffix: '',
search: true,
unstable_flexsearch: true,
unstable_staticImage: true,
floatTOC: true,
feedbackLink: () => {
const { locale } = useRouter()
return FEEDBACK_LINK_WITH_TRANSLATIONS[locale] || FEEDBACK_LINK_WITH_TRANSLATIONS['en-US']
},
feedbackLabels: 'feedback',
logo: () => {
return (
<>
@napi-rs/image
>
)
},
head: ({ title, meta }) => {
return (
<>
{/* Favicons, meta */}
>
)
},
footerEditLink: ({ locale }) => {
switch (locale) {
case 'cn':
return '在 GitHub 上编辑本页 →'
default:
return 'Edit this page on GitHub →'
}
},
footerText: () => {
return (
Powered by{' '}
Nextra