Skip to content

Commit

Permalink
feat(project): add create icon component
Browse files Browse the repository at this point in the history
  • Loading branch information
RCVZ committed Apr 29, 2021
1 parent 11a39fb commit d5a72dd
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/icons/createIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import React from 'react';
import classNames from 'classnames';

import styles from './Icon.module.scss';

type Props = {
className?: string;
};

export default (viewBox: string, icon: JSX.Element) => ({
className,
...props
}: Props) => {
return (
<svg
className={classNames(styles.icon, className)}
viewBox={viewBox}
{...props}
xmlns="http://www.w3.org/2000/svg"
>
{icon}
</svg>
);
};

0 comments on commit d5a72dd

Please sign in to comment.