'use client' import { useVulaContent } from '@/hooks/useVulaContent' import Image from 'next/image' import Button from '@/components/ui/Button' import Link from 'next/link' export default function OriginRootsSection() { const { items, loading } = useVulaContent('posts') if (loading) return
if (items.length === 0) return null const item = items[0] const data = item.data as { title?: string; excerpt?: string; body?: string; author?: string; category?: string; image?: string } return (
{data.image && ( {data.title )}
{data.category && (

{data.category}

)} {data.title && (

{data.title.split(' ').slice(0, -1).join(' ')}{' '} {data.title.split(' ').pop()}

)} {data.excerpt && (

{data.excerpt}

)} {data.body && (

{data.body}

)}
{data.author && (

By {data.author}

)}
) }