1
0
Fork 0
freesewing/sites/org/components/navigation/modal-menu.mjs

34 lines
1 KiB
JavaScript
Raw Normal View History

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-16 16:19:49 +02:00
<ModalWrapper app={app} flex="col" justify="top lg:justify-center">
<div className="max-w-full">
<div
className={`
py-16 w-full m-auto
flex flex-col-reverse gap-0 flex-wrap justify-between
lg:max-w-6xl lg:flex-nowrap lg:gap-8 lg:flex-row
`}
>
<div className="w-1/2">
<h3>{t('mainSections')}</h3>
<SectionsMenu app={app} />
</div>
<div className="w-1/2">
<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
)
}