4
0
forked from crowetic/commerce

UI and more

This commit is contained in:
Belen Curcio
2020-09-23 17:15:24 -03:00
parent d26ab52cb2
commit 0190f3b541
8 changed files with 86 additions and 3 deletions

View File

@@ -0,0 +1,23 @@
import cn from "classnames";
import React, { FunctionComponent } from "react";
import s from "./Avatar.module.css";
interface Props {
className?: string;
children?: any;
}
const Avatar: FunctionComponent<Props> = ({ className }) => {
const rootClassName = cn(s.root, className);
return (
<div className={rootClassName}>
<img
className="inline-block h-12 w-12 rounded-full"
src="https://vercel.com/api/www/avatar/61182a9f6bda512b4d9263c9c8a60aabe0402f4c?s=204"
alt=""
></img>
</div>
);
};
export default Avatar;