import React from 'react'; import PropTypes from 'prop-types'; import { useI18nContext } from '../../../../hooks/useI18nContext'; import { BorderStyle, BorderColor, BorderRadius, AlignItems, BackgroundColor, IconColor, TextVariant, TextColor, } from '../../../../helpers/constants/design-system'; import Box from '../../../ui/box'; import { AvatarIcon, Text, IconName, IconSize, } from '../../../component-library'; import { DelineatorType, getDelineatorTitle, } from '../../../../helpers/constants/flask'; export const SnapDelineator = ({ snapName, type = DelineatorType.default, children, }) => { const t = useI18nContext(); const isError = type === DelineatorType.Error; return ( {t(getDelineatorTitle(type), [snapName])} {children} ); }; SnapDelineator.propTypes = { snapName: PropTypes.string, type: PropTypes.string, children: PropTypes.ReactNode, };