box-ui-elements-mlh
Version:
37 lines (31 loc) • 1.17 kB
Flow
// @flow
import * as React from 'react';
import classNames from 'classnames';
import AccessibleSVG from '../../../icons/accessible-svg';
type Props = {
className?: string,
color?: string,
/** A text-only string describing the icon if it's not purely decorative for accessibility */
selected?: boolean,
title?: string | React.Element<any>,
width?: number,
};
const iconName = 'icon-owned-by-me';
const IconOwnedByMe = ({ className = '', color = '#c4c4c4', title, width = 14, selected = false }: Props) => (
<AccessibleSVG
className={classNames(iconName, className, {
'is-selected': selected,
})}
title={title}
viewBox="0 0 14 14"
width={width}
>
<path
className="fill-color"
color={color}
d="M7,0C3.1,0,0,3.1,0,7s3.1,7,7,7s7-3.1,7-7S10.9,0,7,0z M7,2.6c1.3,0,2.3,1,2.3,2.3c0,1.3-1,2.3-2.3,2.3 c-1.3,0-2.3-1-2.3-2.3C4.7,3.7,5.7,2.6,7,2.6z M7,12.5c-1.6,0-3-0.7-4-1.8C3.6,9.1,5.2,8,7,8c1.8,0,3.4,1.1,4,2.8 C10,11.8,8.6,12.5,7,12.5z"
fill={selected ? color : undefined}
/>
</AccessibleSVG>
);
export default IconOwnedByMe;