---
import AdminLayout from '../../../layouts/AdminLayout.astro';
import CollectionTable from '../../../components/admin/CollectionTable';
import CampaignMap from '../../../components/admin/CampaignMap';
---

<AdminLayout title="Geo Intelligence">
  <div class="space-y-8">
    <CollectionTable
      endpoint="/api/collections/geo_locations"
      columns={['city', 'state', 'county', 'content_generated', 'created_at']}
      title="Geographic Locations"
      client:load
    />
    
    <div class="h-96">
      <CampaignMap client:load />
    </div>
  </div>
</AdminLayout>
