// Dependencies import { serverSideTranslations } from 'next-i18next/serverSideTranslations' import { nsMerge } from 'shared/utils.mjs' // Hooks import { useTranslation } from 'next-i18next' // Components import { PageWrapper, ns as pageNs } from 'shared/components/wrappers/page.mjs' import { WebLink, Link } from 'shared/components/link.mjs' import { Popout } from 'shared/components/popout/index.mjs' import { DiscordIcon, GitHubIcon } from 'shared/components/icons.mjs' import { Joost } from 'shared/components/joost.mjs' // Translation namespaces used on this page const namespaces = nsMerge(pageNs, 'support', 'sections') const CardLink = ({ bg, textColor, href, title, icon, children }) => (

{title} {icon}

{children}
) /* * Each page MUST be wrapped in the PageWrapper component. * You also MUST spread props.page into this wrapper component * when path and locale come from static props (as here) * or set them manually. */ const SupportPage = ({ page }) => { const { t } = useTranslation(namespaces) return (
Discord | {t('support:communitySupport')} } icon={} >

{t('support:communitySupport2')}

GitHub | {t('support:contributorSupport')} } icon={} >

{t('support:contributorSupport2')}

Joost | {t('support:maintainerSupport')}

{t('support:maintainerSupport2')}

{t('support:whatIsDiscord')}

{t('support:whatIsDiscord1')}

.

{t('support:whatIsDiscord3')}
{t('support:whatIsDiscord4')}

{t('support:whatIsGitHub')}

{t('support:whatIsGitHub1')}

{t('support:whatIsGitHub2')}{' '} .

{t('support:whatIsGitHub3')}

{t('support:whatIsJoost')}

{t('support:whatIsJoost1')}

) } export default SupportPage export async function getStaticProps({ locale }) { return { props: { ...(await serverSideTranslations(locale, namespaces)), page: { locale, path: ['patrons', 'thanks'], }, }, } }