Warren Seine 14317c2232
🐛 Remove unnecessary class name props (#2027)
It's unused and serialized to `undefined`.
2020-08-14 20:05:29 +02:00

16 lines
360 B
TypeScript

import "./Avatar.scss";
import React from "react";
type AvatarProps = {
children: string;
onClick: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
color: string;
};
export const Avatar = ({ children, color, onClick }: AvatarProps) => (
<div className={`Avatar`} style={{ background: color }} onClick={onClick}>
{children}
</div>
);