import * as React from 'react'
import {Stack, Flex, Card, Text, Code} from '@sanity/ui'
type Props = {
error: Error
}
export function ErrorRender(props: Props) {
const {error} = props
return
}
type ErrorMessageProps = {
message: string
error?: Error
}
export function ErrorMessage(props: ErrorMessageProps) {
const {message, error} = props
return (
{message}
{error?.message && (
<>
{error.message}
>
)}
)
}