mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-06 17:11:55 +00:00
15 lines
415 B
TypeScript
15 lines
415 B
TypeScript
import { User } from "revolt.js";
|
|
import UserIcon from "./UserIcon";
|
|
import Checkbox, { CheckboxProps } from "../ui/Checkbox";
|
|
|
|
type UserProps = Omit<CheckboxProps, "children"> & { user: User };
|
|
|
|
export default function UserCheckbox({ user, ...props }: UserProps) {
|
|
return (
|
|
<Checkbox {...props}>
|
|
<UserIcon target={user} size={32} />
|
|
{user.username}
|
|
</Checkbox>
|
|
);
|
|
}
|