end to end!

This commit is contained in:
2025-08-23 20:32:50 -04:00
parent a2e8887a0b
commit 3347452ec4
12 changed files with 114 additions and 73 deletions

View File

@@ -0,0 +1,18 @@
import { playerColor, profile } from "../profile";
import { Stylable } from "./toolbox";
export default (props: { playerKey: string } & Stylable) => {
return (
<div
style={{
...props.style,
"background-color": playerColor(props.playerKey),
}}
class={`${props.class} w-20 h-20 rounded-full flex justify-center items-center`}
>
<p style={{ "font-size": "1em" }}>
{profile(props.playerKey)()?.name}
</p>
</div>
);
};