import { pick } from 'lodash' import React, { useState } from 'react' import PropTypes from 'prop-types' import { COLORS, SIZES } from '../../../helpers/constants/design-system' import Box from '../box' import Button from '../button' import DefinitionList from '../definition-list/definition-list' import Popover from '../popover' import { useI18nContext } from '../../../hooks/useI18nContext' export default function TruncatedDefinitionList({ dictionary, tooltips, prefaceKeys, title, }) { const [isPopoverOpen, setIsPopoverOpen] = useState(false) const t = useI18nContext() return ( <> {isPopoverOpen && ( setIsPopoverOpen(false)} footer={ <>
} > )} ) } TruncatedDefinitionList.propTypes = { dictionary: DefinitionList.propTypes.dictionary, tooltips: DefinitionList.propTypes.dictionary, title: PropTypes.string, prefaceKeys: PropTypes.arrayOf(PropTypes.string), }