diff --git a/src/components/sections/ClientTestimonialsSection.tsx b/src/components/sections/ClientTestimonialsSection.tsx new file mode 100644 index 0000000..5476fa5 --- /dev/null +++ b/src/components/sections/ClientTestimonialsSection.tsx @@ -0,0 +1,39 @@ +'use client' +import { useVulaContent } from '@/hooks/useVulaContent' + +export default function ClientTestimonialsSection() { + const { items, loading } = useVulaContent('posts') + + if (loading) { + return
+ } + + if (items.length === 0) return null + + return ( +
+
+
+
+

Client outcomes

+

Matters that landed.

+

Unedited feedback from clients across corporate, property and dispute work.

+
+
+ {items.slice(0, 3).map((item) => { + const d = item.data as { title?: string; excerpt?: string; author?: string; category?: string } + return ( +
+ {d.category ?

{d.category}

: null} + {d.title ?

{d.title}

: null} + {d.excerpt ?

“{d.excerpt}”

: null} + {d.author ?

{d.author}

: null} +
+ ) + })} +
+
+
+
+ ) +} \ No newline at end of file