mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-01-16 00:23:06 +01:00
21 lines
361 B
JavaScript
21 lines
361 B
JavaScript
// @flow strict
|
|
import React from 'react';
|
|
import styles from './Icon.module.scss';
|
|
|
|
type Props = {
|
|
name: string,
|
|
icon: {
|
|
viewBox?: string,
|
|
path?: string
|
|
}
|
|
};
|
|
|
|
const Icon = ({ name, icon }: Props) => (
|
|
<svg className={styles['icon']} viewBox={icon.viewBox}>
|
|
<title>{name}</title>
|
|
<path d={icon.path} />
|
|
</svg>
|
|
);
|
|
|
|
export default Icon;
|