refactor: start redesign of user page

This commit is contained in:
Kentai Radiquum 2025-04-03 21:07:44 +05:00
parent 68a7117a97
commit 8cf1bb534d
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
5 changed files with 211 additions and 185 deletions

View file

@ -0,0 +1,15 @@
interface UserRoleProps {
name: string;
color: string;
}
export const UserRole = ({ name, color }: UserRoleProps) => {
return (
<div
className={`text-[var(--color)] border border-[var(--color)] rounded-md`}
style={{ "--color": `#${color}` } as React.CSSProperties}
>
<p className="px-1.5 py-0.5">{name}</p>
</div>
);
};