mirror of
https://github.com/owncast/owncast.git
synced 2025-01-07 17:17:32 +03:00
18 lines
391 B
TypeScript
18 lines
391 B
TypeScript
import s from './ChatUserBadge.module.scss';
|
|
|
|
interface Props {
|
|
badge: string;
|
|
userColor: number;
|
|
}
|
|
|
|
export default function ChatUserBadge(props: Props) {
|
|
const { badge, userColor } = props;
|
|
const color = `var(--theme-user-colors-${userColor})`;
|
|
const style = { color, borderColor: color };
|
|
|
|
return (
|
|
<span style={style} className={s.badge}>
|
|
{badge}
|
|
</span>
|
|
);
|
|
}
|