iconLocation.tsx 1.1 KB

1234567891011121314151617181920212223242526272829
  1. import React from 'react';
  2. import SvgIcon from './svgIcon';
  3. type Props = React.ComponentProps<typeof SvgIcon> & {
  4. isSolid?: boolean;
  5. };
  6. const IconLocation = React.forwardRef(function IconLocation(
  7. {isSolid = false, ...props}: Props,
  8. ref: React.Ref<SVGSVGElement>
  9. ) {
  10. return (
  11. <SvgIcon {...props} ref={ref}>
  12. {isSolid ? (
  13. <path d="M8,16a.74.74,0,0,1-.45-.15c-4-3-6.09-6.16-6.09-9.29A6.55,6.55,0,0,1,8,0a6.54,6.54,0,0,1,6.54,6.54c0,3.14-2,6.26-6.09,9.29A.74.74,0,0,1,8,16ZM8,4.05a2,2,0,1,0,2,2A2,2,0,0,0,8,4.05Z" />
  14. ) : (
  15. <React.Fragment>
  16. <path d="M8,16a.74.74,0,0,1-.45-.15c-4-3-6.09-6.16-6.09-9.29A6.55,6.55,0,0,1,8,0a6.54,6.54,0,0,1,6.54,6.54c0,3.14-2,6.26-6.09,9.29A.74.74,0,0,1,8,16ZM8,1.51a5,5,0,0,0-5,5c0,2.53,1.69,5.13,5,7.74,3.34-2.61,5-5.21,5-7.74a5,5,0,0,0-5-5Z" />
  17. <path d="M8,8.85a2.78,2.78,0,1,1,2.77-2.77A2.78,2.78,0,0,1,8,8.85Zm0-4A1.28,1.28,0,1,0,9.27,6.08,1.27,1.27,0,0,0,8,4.8Z" />
  18. </React.Fragment>
  19. )}
  20. </SvgIcon>
  21. );
  22. });
  23. IconLocation.displayName = 'IconLocation';
  24. export {IconLocation};