'use client';

import { SponsorshipCard } from '@/ui/SponsorshipCard';
import React from 'react';

interface SponsorshipSlot {
  id: string;
  name: string;
  description: string;
  price: number;
  currency: string;
  isAvailable: boolean;
  sponsoredBy?: {
    name: string;
  };
}

interface SponsorshipSlotCardProps {
  slot: SponsorshipSlot;
}

export function SponsorshipSlotCard({ slot }: SponsorshipSlotCardProps) {
  return (
    <SponsorshipCard
      name={slot.name}
      description={slot.description}
      price={`${slot.price} ${slot.currency}`}
      isAvailable={slot.isAvailable}
      sponsoredBy={slot.sponsoredBy?.name}
    />
  );
}
