---
import { getCollection } from 'astro:content';
import TaShowcaseLayout from '../../layouts/taShowcaseLayout.astro'

export async function getStaticPaths() {
  const fulldata = (await getCollection('taInfoData')).map((data) => data.id)
  return fulldata.map((slug) => ({ params: { slug } }))
}

const { slug } = Astro.params
---

<TaShowcaseLayout collectionKey={slug} />
