diff --git a/src/blocks/Stats/Component.tsx b/src/blocks/Stats/Component.tsx index e698308..76653cf 100644 --- a/src/blocks/Stats/Component.tsx +++ b/src/blocks/Stats/Component.tsx @@ -1,19 +1,10 @@ 'use client' import React from 'react' +import type { Page } from '../../payload-types' -export interface StatsProps { - eyebrow?: string | null - title?: string | null - subtitle?: string | null - items?: Array<{ - id?: string | null - stat: string - label: string - description?: string | null - }> | null -} +type Props = Extract[0], { blockType: 'stats' }> -export const StatsBlock: React.FC = ({ eyebrow, title, subtitle, items }) => { +export const StatsBlock: React.FC = ({ title, subtitle, items }) => { if (!items || items.length === 0) return null return ( @@ -21,11 +12,6 @@ export const StatsBlock: React.FC = ({ eyebrow, title, subtitle, ite
{(title || subtitle) && (
- {eyebrow && ( -
- // {eyebrow} -
- )} {title && (

{title} @@ -45,7 +31,7 @@ export const StatsBlock: React.FC = ({ eyebrow, title, subtitle, ite key={item.id || index} className="flex flex-col p-8 sm:p-12 border-b border-r border-border hover:bg-foreground/[0.02] transition-colors" > -
+
{item.stat}
diff --git a/src/blocks/TrustBar/Component.tsx b/src/blocks/TrustBar/Component.tsx index cbb51c0..3c7df4e 100644 --- a/src/blocks/TrustBar/Component.tsx +++ b/src/blocks/TrustBar/Component.tsx @@ -1,6 +1,4 @@ -'use client' import React from 'react' -import { motion } from 'framer-motion' import { Shield, CheckCircle, MessageCircle, Star } from 'lucide-react' import type { Page } from '../../payload-types' @@ -23,19 +21,15 @@ export const TrustBarBlock: React.FC = ({ items }) => { {items.map((item: NonNullable[0], index: number) => { const Icon = item.icon ? iconMap[item.icon as keyof typeof iconMap] : CheckCircle return ( -
{item.text} -
+
) })}