import { Service } from '@/types'; const bgColorValues: Record = { primary: '#f5a623', secondary: '#f48fb1', accent: '#00473e', gray: '#f5f5f5', white: '#ffffff', }; const lightBackgrounds = ['gray', 'white']; function LinkIcon({ bgColor }: { bgColor: string }) { const isAccent = bgColor === 'accent'; const circleColor = isAccent ? 'white' : 'black'; const arrowColor = bgColorValues[bgColor] ?? '#ffffff'; return ( ); } export function ServiceCard({ title, colorTitle, bgColor, bgTitle, descriptionColor, description, link, illustration }: Service) { const isLightBg = lightBackgrounds.includes(bgColor); return (

{title}

{description}

En savoir plus
{title}
); }