"use client"

import { env } from "@/env/client"

export default function Error({
  error,
}: {
  error: Error & { digest?: string }
  reset: () => void
}) {
  return (
    <section>
      <pre>Unable to render footer</pre>
      {env.NEXT_PUBLIC_NODE_ENV === "development" && (
        <div>
          <div>{error.message}</div>
          <pre>{error.stack}</pre>
        </div>
      )}
    </section>
  )
}
