import {WarningOutlineIcon} from '@sanity/icons' import {TSDocComment} from '@sanity/tsdoc' import {Box, Card, Flex, Stack, Text} from '@sanity/ui' import {Size, useTextSize} from '../lib/ui' import {CommentBox} from './CommentBox' import {PortableText} from './PortableText' export function CommentDeprecatedCallout(props: {data: TSDocComment}): React.ReactNode { const {data} = props const {deprecated} = data const textSize = useTextSize([0, 0, 1]) if (!deprecated?.content) return <> return ( Deprecated ) }