UI: init machine avatar component

This commit is contained in:
Johannes Kirschbauer
2024-12-10 15:15:44 +01:00
parent a7191b1c90
commit 89f8a2275d

View File

@@ -0,0 +1,22 @@
import { RndThumbnail } from "@/src/components/noiseThumbnail";
import cx from "classnames";
interface AvatarProps {
name?: string;
class?: string;
}
export const MachineAvatar = (props: AvatarProps) => {
return (
<figure>
<div class="avatar placeholder">
<div
class={cx(
"rounded-lg border p-2 bg-def-1 border-def-3 size-36",
props.class
)}
>
<RndThumbnail name={props.name || ""} />
</div>
</div>
</figure>
);
};