wip(shared): Work on MDX wrapper
This commit is contained in:
parent
0b238c989e
commit
9cf7de9a0b
7 changed files with 133 additions and 17 deletions
|
@ -3,14 +3,14 @@ import { PageLink } from 'shared/components/page-link.mjs'
|
|||
import { useTranslation } from 'next-i18next'
|
||||
import { RightIcon } from 'shared/components/icons.mjs'
|
||||
|
||||
export const ns = ['account']
|
||||
export const ns = ['docs']
|
||||
|
||||
export const ControlTip = () => {
|
||||
const { t } = useTranslation(ns)
|
||||
|
||||
return (
|
||||
<Popout note>
|
||||
<h5>{t('account:control')}</h5>
|
||||
<h5>{t('controltip.t')}</h5>
|
||||
<p dangerouslySetInnerHTML={{ __html: t('controltip.d1') }} />
|
||||
<p>
|
||||
{t('controltip.d2')}
|
||||
|
@ -18,9 +18,9 @@ export const ControlTip = () => {
|
|||
{t('controltip.d3')}
|
||||
</p>
|
||||
<div className="flex flex-row gap-1 items-center">
|
||||
<PageLink href="/account/" txt={t('account:account')} />
|
||||
<PageLink href="/account/" txt={t('account')} />
|
||||
<RightIcon className="w-4 h-4" />
|
||||
<PageLink href="/account/control/" txt={t('account:control')} />
|
||||
<PageLink href="/account/control/" txt={t('controltip.t')} />
|
||||
</div>
|
||||
</Popout>
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue