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

Make sure to configure the viewer properly ( https://docs.typebot.io/self-hosting/configuration#viewer )

) : ( <>

{error.name}

{error.message}

)}
) }