rickvanlieshout.com/src/components/Icon/Icon.js
2019-05-10 02:15:43 +03:00

19 lines
306 B
JavaScript

// @flow
import React from 'react';
import styles from './Icon.module.scss';
type Props = {
icon: {
viewBox?: string,
path?: string
}
};
const Icon = ({ icon }: Props) => (
<svg className={styles['icon']} viewBox={icon.viewBox}>
<path d={icon.path} />
</svg>
);
export default Icon;