@lessondesk/material-icons
Version:
Material Icon SVGs as React Components
28 lines (23 loc) • 566 B
JavaScript
import React from 'react'
import styled from 'styled-components'
import { space, color } from 'styled-system'
const Svg = styled('svg')({ flex: 'none' }, space, color)
const HackernewsIcon = ({
size,
...props
}) => (
<Svg
{...props}
viewBox='0 0 24 24'
width={size}
height={size}
fill='currentcolor'
>
<path d='M2,2H22V22H2V2M11.25,17.5H12.75V13.06L16,7H14.5L12,11.66L9.5,7H8L11.25,13.06V17.5Z' />
</Svg>
)
HackernewsIcon.displayName = 'HackernewsIcon'
HackernewsIcon.defaultProps = {
size: 24
}
export default HackernewsIcon