UNPKG

box-ui-elements-mlh

Version:
49 lines (43 loc) 1.4 kB
// @flow import * as React from 'react'; import classNames from 'classnames'; import AccessibleSVG from '../accessible-svg'; import { bdlGray } from '../../styles/variables'; type Props = { className?: string, color?: string, height?: number, strokeWidth?: number, /** A text-only string describing the icon if it's not purely decorative for accessibility */ title?: string | React.Element<any>, width?: number, }; const IconSecurityClassification = ({ className = '', height = 32, color = bdlGray, title, strokeWidth = 2, width = 32, }: Props) => { const classes = classNames('bdl-IconSecurityClassification', className); return ( <AccessibleSVG className={classes} height={height} title={title} viewBox="0 0 32 32" width={width}> <path d="M17,2 L5,8 L5,15 C5,21.4214876 10.6933333,29.5421488 17,31 C23.3066667,29.5421488 29,21.4214876 29,15 L29,8 L17,2 Z" stroke={color} strokeWidth={strokeWidth} fill="none" /> <path d="M23,11 L23,19" stroke={color} strokeWidth={strokeWidth} strokeLinecap="round" strokeLinejoin="round" fill="none" /> </AccessibleSVG> ); }; export default IconSecurityClassification;