/**
* Information Icon and Dialogue with Concept Details
* - affords Tree View access to Definition, Examples, and Scope Notes
* - is rendered only when concept details are present
*/
import {useCallback, useState} from 'react'
import {Box, Dialog, Label, Stack, Text} from '@sanity/ui'
import {InfoOutlineIcon} from '@sanity/icons'
import {StyledTreeButton} from '../styles'
export const ConceptDetailDialogue = ({concept}: {concept: any}) => {
const [open, setOpen] = useState(false)
const onClose = useCallback(() => setOpen(false), [])
const onOpen = useCallback(() => setOpen(true), [])
if (!concept || (!concept.definition && !concept.example && !concept.scopeNote)) return null
return (
<>
{open && (
)}
>
)
}