mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
34 lines
776 B
JavaScript
34 lines
776 B
JavaScript
import React, { forwardRef } from 'react';
|
|
import PropTypes from 'prop-types';
|
|
|
|
const Anchor = forwardRef(({ color = 'currentColor', size = "1em", ...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="2"
|
|
strokeLinecap="round"
|
|
strokeLinejoin="round"
|
|
{...rest}
|
|
>
|
|
<circle cx="12" cy="5" r="3" />
|
|
<line x1="12" y1="22" x2="12" y2="8" />
|
|
<path d="M5 12H2a10 10 0 0 0 20 0h-3" />
|
|
</svg>
|
|
);
|
|
});
|
|
|
|
Anchor.propTypes = {
|
|
color: PropTypes.string,
|
|
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
};
|
|
|
|
Anchor.displayName = 'Anchor';
|
|
|
|
export default Anchor;
|