react-feather
Version:
React component for Feather icons
77 lines (72 loc) • 1.45 kB
JavaScript
import React from 'react';
import PropTypes from 'prop-types';
const Server = props => {
const { color, size, ...otherProps } = props;
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width={size}
height={size}
viewBox="0 0 24 24"
{...otherProps}
>
<rect
x="2"
y="2"
width="20"
height="8"
rx="2"
ry="2"
fill="none"
stroke={color}
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
/>
<rect
x="2"
y="14"
width="20"
height="8"
rx="2"
ry="2"
fill="none"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
/>
<line
x1="6"
y1="6"
x2="6"
y2="6"
fill="none"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
/>
<line
x1="6"
y1="18"
x2="6"
y2="18"
fill="none"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
/>
</svg>
);
};
Server.propTypes = {
color: PropTypes.string,
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
};
Server.defaultProps = {
color: 'currentColor',
size: '24',
};
export default Server;