index.tsx 936 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import {
  2. NCoreUIKitTheme
  3. } from "../../../core/hooks";
  4. import {
  5. type INCoreUIKitIconProps
  6. } from "../../../types";
  7. import {
  8. Path,
  9. Svg
  10. } from "react-native-svg";
  11. const SvgCleanIcon = ({
  12. color = "default",
  13. customColor,
  14. size = 20,
  15. ...props
  16. }: INCoreUIKitIconProps) => {
  17. const {
  18. colors
  19. } = NCoreUIKitTheme.useContext();
  20. const pathScale = 27 / size;
  21. return <Svg
  22. height={size}
  23. width={size}
  24. fill="none"
  25. {...props}
  26. >
  27. <Path
  28. d="M13.5 25C19.851 25 25 19.851 25 13.5S19.851 2 13.5 2 2 7.149 2 13.5 7.149 25 13.5 25ZM16.95 10.05l-6.9 6.9m0-6.9 6.9 6.9"
  29. stroke={customColor ? customColor : colors.content.icon[color]}
  30. transform={`scale(${1 / pathScale})`}
  31. strokeLinejoin="round"
  32. strokeLinecap="round"
  33. strokeWidth={1.25}
  34. />
  35. </Svg>;
  36. };
  37. export default SvgCleanIcon;