import { Modal } from 'flowbite-react' import { Entity } from 'megalodon' type Props = { open: boolean close: () => void attachment: Entity.Attachment | null } export default function Media(props: Props) { return ( {props.attachment && ( {props.attachment.description} )} ) }