iconLightning.tsx 1.1 KB

1234567891011121314151617181920212223242526272829
  1. import * as React from 'react';
  2. import SvgIcon from './svgIcon';
  3. type Props = React.ComponentProps<typeof SvgIcon> & {
  4. isSolid?: boolean;
  5. };
  6. const IconLightning = React.forwardRef(function IconLightning(
  7. {isSolid = false, ...props}: Props,
  8. ref: React.Ref<SVGSVGElement>
  9. ) {
  10. return (
  11. <SvgIcon {...props} ref={ref}>
  12. {isSolid ? (
  13. <React.Fragment>
  14. <path d="M3.81,16a1.21,1.21,0,0,1-.74-.26,1.19,1.19,0,0,1-.33-1.45L4.79,10,2.32,8.39a1,1,0,0,1-.07-1.58L10.67.26a1.19,1.19,0,0,1,1.8,1.46L10.41,6,12.9,7.64a1,1,0,0,1,.44.78,1,1,0,0,1-.38.8L4.54,15.74A1.15,1.15,0,0,1,3.81,16Z" />
  15. <path d="M12.08,8.9Z" />
  16. </React.Fragment>
  17. ) : (
  18. <path d="M3.81,16a1.21,1.21,0,0,1-.74-.26,1.19,1.19,0,0,1-.33-1.45L4.79,10,2.32,8.39a1,1,0,0,1-.07-1.58L10.67.26a1.19,1.19,0,0,1,1.8,1.46L10.41,6,12.9,7.64a1,1,0,0,1,.44.78,1,1,0,0,1-.38.8L4.54,15.74A1.15,1.15,0,0,1,3.81,16ZM3.76,7.53l2.4,1.56a.77.77,0,0,1,.27,1L4.65,13.76l6.81-5.27L9,6.91a.75.75,0,0,1-.26-1l1.78-3.71ZM12.08,8.9Zm-.95-8h0Z" />
  19. )}
  20. </SvgIcon>
  21. );
  22. });
  23. IconLightning.displayName = 'IconLightning';
  24. export {IconLightning};