import React from 'react'
import { isEmpty } from 'utils'
export const ErrorPage = ({ error }: { error: Error }) => {
return (
{isEmpty(process.env.NEXT_PUBLIC_VIEWER_URL) ? (
<>
NEXT_PUBLIC_VIEWER_URL is missing
>
) : (
<>
{error.name}
{error.message}
>
)}
)
}