This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
2022-03-22 12:47:08 +00:00
|
|
|
import PropTypes from "prop-types";
|
|
|
|
|
2022-03-01 15:27:28 +00:00
|
|
|
import { withIconProps } from "../withIconProps";
|
|
|
|
|
2022-03-22 12:47:08 +00:00
|
|
|
export const CheckmarkIcon = withIconProps(({ size, circled, ...props }) => (
|
2022-03-01 15:27:28 +00:00
|
|
|
<svg
|
|
|
|
width={size}
|
|
|
|
height={size}
|
|
|
|
viewBox="0 0 32 32"
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
shapeRendering="geometricPrecision"
|
|
|
|
{...props}
|
|
|
|
>
|
2022-03-22 12:47:08 +00:00
|
|
|
{circled && <circle cx="16" cy="16" r="15" fill="transparent" stroke="currentColor" strokeWidth="2" />}
|
2022-03-01 15:27:28 +00:00
|
|
|
<polygon
|
|
|
|
fill="currentColor"
|
|
|
|
points="22.45 11.19 23.86 12.61 14.44 22.03 9.69 17.28 11.1 15.86 14.44 19.2 22.45 11.19"
|
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
));
|
2022-03-22 12:47:08 +00:00
|
|
|
|
|
|
|
CheckmarkIcon.propTypes = {
|
|
|
|
...CheckmarkIcon.propTypes,
|
|
|
|
circled: PropTypes.bool,
|
|
|
|
};
|