import {APIInterface} from '@sanity/tsdoc'
import {Box, Code} from '@sanity/ui'
import {_compileInterfaceDefinition} from '../../app/lib/_compile'
import {CommentBox, CommentSummary} from '../../comment'
import {useTextSize} from '../../lib/ui'
export function InterfaceTooltipContent(props: {data: APIInterface}): React.ReactNode {
const {data} = props
return (
<>
{`import {${data.name}} from '${data.export.name}'`}
{_compileInterfaceDefinition(data)}
{data.comment?.summary && (
)}
>
)
}