import React from 'react';
import { components } from 'react-select';
import Cross from '@strapi/icons/Cross';
import IconBox from './IconBox';

const ClearIndicator = props => {
  const Component = components.ClearIndicator;

  return (
    <Component {...props}>
      <IconBox as="button" type="button">
        <Cross />
      </IconBox>
    </Component>
  );
};

export default ClearIndicator;
