mirror of
https://github.com/suitenumerique/meet.git
synced 2026-08-21 15:47:09 +00:00
b33df66158
Add configuration to conditionally include manifest article, allowing deployments to customize or disable MoreLink component.
25 lines
628 B
TypeScript
25 lines
628 B
TypeScript
import { A, Text } from '@/primitives'
|
|
import { useTranslation } from 'react-i18next'
|
|
import { useConfig } from '@/api/useConfig'
|
|
|
|
export const MoreLink = () => {
|
|
const { t } = useTranslation('home')
|
|
const { data } = useConfig()
|
|
|
|
if (!data?.manifest_link) return
|
|
|
|
return (
|
|
<Text as={'p'} variant={'sm'} style={{ padding: '1rem 0' }}>
|
|
<A
|
|
href={data?.manifest_link}
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
aria-label={t('moreLinkLabel')}
|
|
>
|
|
{t('moreLink')}
|
|
</A>{' '}
|
|
{t('moreAbout', { appTitle: `${import.meta.env.VITE_APP_TITLE}` })}
|
|
</Text>
|
|
)
|
|
}
|