"use client"

import { useEffect } from "react"

export default function Error({
  error,
}: {
  error: Error & { digest?: string }
}) {
  useEffect(() => {
    console.error({ breadcrumbsError: error })
  }, [error])

  return (
    <p>
      <strong>Breadcrumbs failed for this page ({error.digest})</strong>
    </p>
  )
}
