CustomParamAction.tsx 483 B

1234567891011121314151617181920
  1. import React from 'react';
  2. import CustomParamButton, { CustomParamButtonType } from './CustomParamButton';
  3. interface Props {
  4. index: string;
  5. onRemove: (index: string) => void;
  6. }
  7. const CustomParamAction: React.FC<Props> = ({ index, onRemove }) => (
  8. <>
  9. <label className="label">&nbsp;</label>
  10. <CustomParamButton
  11. className="is-danger"
  12. type={CustomParamButtonType.minus}
  13. onClick={() => onRemove(index)}
  14. />
  15. </>
  16. );
  17. export default CustomParamAction;