36 lines
863 B
JavaScript
36 lines
863 B
JavaScript
import React, { forwardRef } from "react";
|
|
import PropTypes from "prop-types";
|
|
|
|
const Clock = forwardRef(
|
|
({ color = "currentColor", size = 24, width = 2, ...rest }, ref) => {
|
|
return (
|
|
<svg
|
|
ref={ref}
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
width={size}
|
|
height={size}
|
|
viewBox="0 0 24 24"
|
|
fill="none"
|
|
stroke={color}
|
|
strokeWidth={width}
|
|
strokeLinecap="round"
|
|
strokeLinejoin="round"
|
|
{...rest}
|
|
>
|
|
<circle cx="12" cy="12" r="10"></circle>
|
|
<polyline points="12 6 12 12 16 14"></polyline>
|
|
</svg>
|
|
);
|
|
}
|
|
);
|
|
|
|
Clock.propTypes = {
|
|
color: PropTypes.string,
|
|
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
};
|
|
|
|
Clock.displayName = "Clock";
|
|
|
|
export default Clock;
|