'use client'; import React from 'react'; import { Box } from '@/ui/Box'; import { Text } from '@/ui/Text'; import { Stack } from '@/ui/Stack'; interface HomeFeatureDescriptionProps { lead: string; items: string[]; quote?: string; accentColor?: 'primary' | 'aqua' | 'amber' | 'gray'; } /** * HomeFeatureDescription - A semantic component for feature descriptions on the home page. * Refactored to use semantic HTML and Tailwind. */ export function HomeFeatureDescription({ lead, items, quote, accentColor = 'primary', }: HomeFeatureDescriptionProps) { const borderColor = { primary: 'primary-accent', aqua: 'telemetry-aqua', amber: 'warning-amber', gray: 'border-gray', }[accentColor]; const bgColor = { primary: 'primary-accent/5', aqua: 'telemetry-aqua/5', amber: 'warning-amber/5', gray: 'white/5', }[accentColor]; return ( {lead} {items.map((item, index) => ( {item} ))} {quote && ( {quote} )} ); }