import { documents } from '@/app/db/data' import { notFound } from 'next/navigation' import { Zilla_Slab } from 'next/font/google' import { Fragment } from 'react' import DocumentCard from '../components/DocumentCard' const zillaSlab = Zilla_Slab({ subsets: ['latin'], weight: ['500'] }) const DocumentCardWrapper = ({ params, }: Readonly<{ params: { shortName: string } }>) => { const { shortName } = params const doc = documents[shortName] const href = `/document/view/${shortName}` if (!doc) { notFound() } return ( ) } const Page = () => { return (

Documents

{Object.keys(documents).map((documentShortName) => { return ( ) })}
) } export default Page