import * as React from 'react' ; import type { LoaderFunction } from 'remix' ; import type { KCDHandle } from '~/types' ; import { ServerError } from '~/components/errors' ; export const handle = { getSitemapEntries : ( ) => null , } ; export const loader = async ( ) => { throw new Error ( 'Oh no!' ) ; } ; export default function Screen ( ) { return < div > You should not see this < /div>; } export function ErrorBoundary ( { error } ) { console . error ( error ) ; return < ServerError />; }