2023-04-09 15:57:25 +02:00
|
|
|
import { SectionsMenu } from 'site/components/navigation/sections-menu.mjs'
|
|
|
|
import { useTranslation } from 'next-i18next'
|
|
|
|
import { ActiveSection, ns as primaryNs } from 'shared/components/navigation/primary.mjs'
|
2023-04-16 16:19:49 +02:00
|
|
|
import { ModalWrapper } from 'shared/components/wrappers/modal.mjs'
|
2023-04-09 15:57:25 +02:00
|
|
|
|
|
|
|
export const ns = primaryNs
|
|
|
|
|
|
|
|
export const ModalMenu = ({ app }) => {
|
|
|
|
const { t } = useTranslation(ns)
|
|
|
|
|
|
|
|
return (
|
2023-04-25 17:33:34 +02:00
|
|
|
<ModalWrapper flex="col" justify="top lg:justify-center" slideFrom="left">
|
2023-04-16 16:19:49 +02:00
|
|
|
<div className="max-w-full">
|
|
|
|
<div
|
|
|
|
className={`
|
2023-04-19 20:11:30 +02:00
|
|
|
py-4 lg:py-16 w-full m-auto
|
2023-04-16 16:19:49 +02:00
|
|
|
flex flex-col-reverse gap-0 flex-wrap justify-between
|
|
|
|
lg:max-w-6xl lg:flex-nowrap lg:gap-8 lg:flex-row
|
|
|
|
`}
|
|
|
|
>
|
2023-04-19 20:11:30 +02:00
|
|
|
<div className="w-full lg:w-1/2">
|
2023-04-16 16:19:49 +02:00
|
|
|
<h3>{t('mainSections')}</h3>
|
|
|
|
<SectionsMenu app={app} />
|
|
|
|
</div>
|
2023-04-19 20:11:30 +02:00
|
|
|
<div className="w-full lg:w-1/2">
|
2023-04-16 16:19:49 +02:00
|
|
|
<h3>{t('currentSection')}</h3>
|
|
|
|
<ActiveSection app={app} bare />
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-04-09 15:57:25 +02:00
|
|
|
</div>
|
2023-04-16 16:19:49 +02:00
|
|
|
</ModalWrapper>
|
2023-04-09 15:57:25 +02:00
|
|
|
)
|
|
|
|
}
|