33 lines
657 B
TypeScript
33 lines
657 B
TypeScript
'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}
|
|
/>
|
|
);
|
|
}
|