'use client'; import { useEffect } from 'react'; import { Button } from '@/components/ui/button'; import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from '@/components/ui/card'; import { AlertCircle } from 'lucide-react'; export default function StoryDetailError({ error, reset, }: { error: Error & { digest?: string }; reset: () => void; }) { useEffect(() => { // Log the error to an error reporting service console.error('Story detail page error:', error); }, [error]); return (