mirror of
https://github.com/vercel/commerce.git
synced 2025-07-30 13:41:22 +00:00
Changes
This commit is contained in:
2
components/core/Avatar/Avatar.module.css
Normal file
2
components/core/Avatar/Avatar.module.css
Normal file
@@ -0,0 +1,2 @@
|
||||
.root {
|
||||
}
|
23
components/core/Avatar/Avatar.tsx
Normal file
23
components/core/Avatar/Avatar.tsx
Normal 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-8 w-8 rounded-full"
|
||||
src="https://vercel.com/api/www/avatar/61182a9f6bda512b4d9263c9c8a60aabe0402f4c?s=204"
|
||||
alt=""
|
||||
></img>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Avatar;
|
1
components/core/Avatar/index.ts
Normal file
1
components/core/Avatar/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export { default } from "./Avatar";
|
Reference in New Issue
Block a user