import React, { useCallback } from 'react'; import { IconButton } from './icon_button'; import { InjectedIntl, defineMessages, injectIntl } from 'react-intl'; const messages = defineMessages({ unblockDomain: { id: 'account.unblock_domain', defaultMessage: 'Unblock domain {domain}', }, }); type Props = { domain: string; onUnblockDomain: (domain: string) => void; intl: InjectedIntl; }; const _Domain: React.FC = ({ domain, onUnblockDomain, intl }) => { const handleDomainUnblock = useCallback(() => { onUnblockDomain(domain); }, [domain, onUnblockDomain]); return (
{domain}
); }; export const Domain = injectIntl(_Domain);