import { GuideTemplate } from '~/features/docs/GuidesMdx.template' import { genGuideMeta, genGuidesStaticParams, getGuidesMarkdown, } from '~/features/docs/GuidesMdx.utils' import { getEmptyArray } from '~/features/helpers.fn' import { IS_DEV } from '~/lib/constants' type Params = { slug?: string[] } const FunctionsGuidePage = async (props: { params: Promise }) => { const params = await props.params const slug = ['functions', ...(params.slug ?? [])] const data = await getGuidesMarkdown(slug) return } const generateStaticParams = !IS_DEV ? genGuidesStaticParams('functions') : getEmptyArray const generateMetadata = genGuideMeta((params: { slug?: string[] }) => getGuidesMarkdown(['functions', ...(params.slug ?? [])]) ) export default FunctionsGuidePage export { generateStaticParams, generateMetadata }