mirror of
https://github.com/revoltchat/revite.git
synced 2024-09-21 02:27:07 -04: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>
|
||
|
);
|
||
|
}
|