'use client'; import { useState } from 'react'; import { Story } from '@/data/creative'; import { formatReadingTime } from '@/utils/readingTime'; interface ExpandableStoryProps { story: Story; } export default function ExpandableStory({ story }: ExpandableStoryProps) { const [isExpanded, setIsExpanded] = useState(false); return (
setIsExpanded(!isExpanded)} >

{story.title}

{isExpanded ? '▼' : '▶'}

{story.excerpt}

{formatReadingTime(story.readTime)} read {new Date(story.createdAt).toLocaleDateString('en-US', { year: 'numeric', month: 'long', day: 'numeric' })}
{story.content}
); }