import { Metadata } from 'next' import Link from 'next/link' import { getArtifacts } from '@utils' import styles from './page.module.css' export const metadata: Metadata = { title: 'chora | artifacts', } async function getResearchArtifacts() { return [ { group: 'choreography', items: getArtifacts('choreography') }, ] } const ResearchPage = async () => { const artifacts = await getResearchArtifacts() return (

{'artifacts'}

{!artifacts.length ? (

{'failed to load artifacts'}

) : (
{artifacts.map(({ group, items }) => (

{group}

    {items.map( ({ id, title, description, created, updated }) => (
  • {title}

    {description}

    {`created: ${created.toDateString()}`} {' | '} {`updated: ${updated.toDateString()}`}

  • ), )}
))}
)}
) } export default ResearchPage