// Copyright 2017-2019 @polkadot/app-accounts authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { I18nProps } from '@polkadot/react-components/types'; import { CodeStored } from '@polkadot/app-contracts/types'; import React from 'react'; import { Button, CodeRow, Modal } from '@polkadot/react-components'; import translate from './translate'; interface Props extends I18nProps { code: CodeStored; onClose: () => void; onRemove: () => void; } function RemoveABI ({ code, onClose, onRemove, t }: Props): React.ReactElement { const _onRemove = (): void => { onClose && onClose(); onRemove(); }; return ( {t('Confirm ABI removal')}

{t('You are about to remove this code\'s ABI. Once completed, should you need to access it again, you will have to manually re-upload it.')}

{t('This operation does not impact the associated on-chain code or any of its contracts.')}