import { Link } from 'react-router-dom' import { isInIframe } from '../../utils/iFrame' export function ErrorPage({ icon, messages, }: { icon?: boolean messages: { header: string; para1: string; para2?: string } }) { const inIframe = isInIframe() return (
{icon && ( {'Not )}

{messages.header}

{messages.para1}

{messages.para2 &&

{messages.para2}

}
{inIframe ? 'Open tldraw.' : 'Back to tldraw.'}
) }