// Hooks import { useApp } from 'site/hooks/useApp.mjs' import { useTranslation } from 'next-i18next' // Components import Head from 'next/head' import Link from 'next/link' import { PageWrapper } from 'site/components/wrappers/page.mjs' import { BareLayout } from 'site/components/layouts/bare.mjs' import { PageTitle } from 'shared/components/workbench/layout/default.mjs' const DesignLinks = ({ list, prefix = '' }) => { const { t } = useTranslation(['patterns']) return ( ) } export const PatternListPageTemplate = ({ section = false }) => { const app = useApp() const { t } = useTranslation(['app']) const title = section ? app.navigation[section].__title : t('designs') const fullTitle = title + ' - FreeSewing Lab' const sectionDesigns = (section = false) => { if (!section) { const all = [] for (const section in app.designs) all.push(...app.designs[section]) return all } return app.designs[section] } return ( {fullTitle}
) }