import {Box, Heading, Idiomatic} from "@steffo/bluelib-react"
import * as React from "react"
import ReactMarkdown from "react-markdown"
import {useInstanceContext} from "../../contexts/instance"
import {ErrorBox} from "../errors/ErrorBox"
export function InstanceDescriptionBox(): JSX.Element | null {
const instance = useInstanceContext()
if(!instance) {
return
}
if(!instance.state.details) {
return null
}
if(!instance.state.details.description) {
return null
}
return (
About {instance.state.details.name}
{instance.state.details.description}
)
}