---
import Layout from '@/layouts/AdminLayout.astro';
import GenericCollectionManager from '@/components/admin/collections/GenericCollectionManager';
---

<Layout title="Content Fragments | Spark Intelligence">
  <div class="p-8">
     <GenericCollectionManager 
        client:only="react" 
        collection="content_fragments" 
        title="Content Fragments"
        displayField="key"
        fields={[
            { key: 'key', label: 'Fragment Key', type: 'text' },
            { key: 'content', label: 'Content', type: 'textarea' },
            { key: 'tags', label: 'Tags (JSON)', type: 'json' }
        ]}
     />
  </div>
</Layout>
