iconAdd.tsx 969 B

1234567891011121314151617181920212223242526272829303132
  1. import React from 'react';
  2. import SvgIcon from './svgIcon';
  3. type Props = React.ComponentProps<typeof SvgIcon> & {
  4. isCircled?: boolean;
  5. };
  6. const IconAdd = React.forwardRef(function IconAdd(
  7. {isCircled = false, ...props}: Props,
  8. ref: React.Ref<SVGSVGElement>
  9. ) {
  10. return (
  11. <SvgIcon {...props} ref={ref}>
  12. {isCircled ? (
  13. <React.Fragment>
  14. <path d="M11.28,8.75H4.72a.75.75,0,1,1,0-1.5h6.56a.75.75,0,1,1,0,1.5Z" />
  15. <path d="M8,12a.76.76,0,0,1-.75-.75V4.72a.75.75,0,0,1,1.5,0v6.56A.76.76,0,0,1,8,12Z" />
  16. <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" />
  17. </React.Fragment>
  18. ) : (
  19. <React.Fragment>
  20. <path d="M8.75,7.25V2a.75.75,0,0,0-1.5,0V7.25H2a.75.75,0,0,0,0,1.5H7.25V14a.75.75,0,0,0,1.5,0V8.75H14a.75.75,0,0,0,0-1.5Z" />
  21. </React.Fragment>
  22. )}
  23. </SvgIcon>
  24. );
  25. });
  26. IconAdd.displayName = 'IconAdd';
  27. export {IconAdd};