import React from 'react';
import { Svg, Path } from 'react-native-svg';

export default function PrivacySvg({
  color = 'currentColor',
  height = 20,
  width = 20,
  style,
  variant = 'outline',
}) {
  let children;

  switch (variant) {
    case 'outline':
      children = (
        <>
          <Path
            d="M2.65 2.28085C2.65 2.10682 2.77787 1.95922 2.95013 1.93442L6.8157 1.378C8.92769 1.074 11.0723 1.074 13.1843 1.378L17.0499 1.93442C17.2221 1.95922 17.35 2.10682 17.35 2.28085V11.6066C17.35 13.4761 16.3741 15.2101 14.7759 16.1801L10.7005 18.6537C10.27 18.9149 9.72998 18.9149 9.29955 18.6536L5.22412 16.1801C3.62592 15.2101 2.65 13.4761 2.65 11.6066V2.28085Z"
            stroke={color}
            strokeWidth="1.3"
          />
          <Path
            d="M10 10C11.1046 10 12 9.10457 12 8C12 6.89543 11.1046 6 10 6C8.89543 6 8 6.89543 8 8C8 9.10457 8.89543 10 10 10ZM10 10V13.8516"
            stroke={color}
            strokeWidth="1.3"
            strokeLinecap="round"
          />
        </>
      );
      break;

    case 'fill':
      children = (
        <Path
          fillRule="evenodd"
          clipRule="evenodd"
          d="M2.85753 1.29105C2.36535 1.3619 2 1.78361 2 2.28085V11.6066C2 13.7033 3.09449 15.6479 4.88687 16.7357L8.96229 19.2093C9.59996 19.5963 10.4 19.5963 11.0377 19.2093L15.1131 16.7357C16.9055 15.6479 18 13.7033 18 11.6066V2.28085C18 1.78361 17.6346 1.3619 17.1425 1.29105L13.2769 0.734634C11.1035 0.421789 8.8965 0.421788 6.7231 0.734634L2.85753 1.29105ZM8.65 8C8.65 7.25442 9.25442 6.65 10 6.65C10.7456 6.65 11.35 7.25442 11.35 8C11.35 8.74558 10.7456 9.35 10 9.35C9.25442 9.35 8.65 8.74558 8.65 8ZM10 5.35C8.53645 5.35 7.35 6.53645 7.35 8C7.35 9.23929 8.2007 10.2799 9.35 10.5697V13.8516C9.35 14.2105 9.64102 14.5016 10 14.5016C10.359 14.5016 10.65 14.2105 10.65 13.8516V10.5697C11.7993 10.2799 12.65 9.23929 12.65 8C12.65 6.53645 11.4636 5.35 10 5.35Z"
          fill={color}
        />
      );
      break;

    default:
      break;
  }

  return (
    <Svg width={width} height={height} viewBox="0 0 20 20" fill="none" style={style}>
      {children}
    </Svg>
  );
}
