import React from 'react';

import { SVG, IProps as IPropsSVG } from '.';

export interface IProps {
    readonly svg?: IPropsSVG
}

export const IconPin = (props: IProps) => (
    <SVG {...props.svg}>
        <path
            fillRule="evenodd"
            clipRule="evenodd"
            d="M6.59082 2H17.4092L17.2298 3.00928C17.1705 3.34247 17.0283 3.85549 16.7879 4.39264C16.594 4.82592 16.3177 5.31697 15.9339 5.74767V10.9217C17.1933 11.7209 19 13.5023 19 16.1598V17.0294H12.9496V22H11.0504V17.0294H5V16.1598C5 13.5023 6.80671 11.7209 8.0661 10.9217V5.74768C7.68235 5.31697 7.406 4.82592 7.21209 4.39264C6.97169 3.85549 6.82946 3.34247 6.77023 3.00928L6.59082 2ZM8.97205 3.73913C9.15963 4.15673 9.40306 4.54031 9.6871 4.80042L9.96522 5.05511V11.927L9.46252 12.1725C8.74108 12.5249 7.36626 13.6129 6.99405 15.2902H17.0059C16.6337 13.6129 15.2589 12.5249 14.5375 12.1725L14.0348 11.927V5.05511L14.3129 4.80042C14.5969 4.54031 14.8404 4.15673 15.0279 3.73913H8.97205Z"
        />
    </SVG>
);

export default IconPin;
