iconSubtract.tsx 806 B

12345678910111213141516171819202122232425262728
  1. import {forwardRef, Fragment} from 'react';
  2. import {SvgIcon, SVGIconProps} from './svgIcon';
  3. interface Props extends SVGIconProps {
  4. isCircled?: boolean;
  5. }
  6. const IconSubtract = forwardRef<SVGSVGElement, Props>(
  7. ({isCircled = false, ...props}, ref) => {
  8. return (
  9. <SvgIcon {...props} data-test-id="icon-subtract" ref={ref}>
  10. {isCircled ? (
  11. <Fragment>
  12. <path d="M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z" />
  13. <path d="M11.28,8.75H4.72a.75.75,0,1,1,0-1.5h6.56a.75.75,0,1,1,0,1.5Z" />
  14. </Fragment>
  15. ) : (
  16. <path d="M14,8.75H2a.75.75,0,0,1,0-1.5H14a.75.75,0,0,1,0,1.5Z" />
  17. )}
  18. </SvgIcon>
  19. );
  20. }
  21. );
  22. IconSubtract.displayName = 'IconSubtract';
  23. export {IconSubtract};