--- type ColorKey = 'bg-gradient-1' | 'bg-gradient-2' | 'bg-gradient-3' | 'bg-gradient-4' | 'bg-gradient-5' | 'bg-gradient-6'; export interface Props { name: string; profession: string; text: string; rating: number; initial: string; color: ColorKey; date: string; reviewId: string; initialLikes?: number; } const { name, profession, text, rating, initial, color, date, reviewId, initialLikes = 0 } = Astro.props; // Форматируем дату const formatDate = (dateStr: string) => { const date = new Date(dateStr); return date.toLocaleDateString('ru-RU', { day: 'numeric', month: 'long', year: 'numeric' }); }; // Цвета для градиентов аватаров const gradientColors = { 'bg-gradient-1': 'from-purple-500 to-pink-500', 'bg-gradient-2': 'from-blue-500 to-cyan-500', 'bg-gradient-3': 'from-green-500 to-emerald-500', 'bg-gradient-4': 'from-orange-500 to-red-500', 'bg-gradient-5': 'from-indigo-500 to-purple-500', 'bg-gradient-6': 'from-rose-500 to-orange-500', }; ---
{initial}

{name}

{profession}

{[1, 2, 3, 4, 5].map((star) => ( ))}
{rating}.0

"{text}"