import clsx from "clsx"; import React, { MouseEventHandler } from "react"; import { AllUsersQuery } from "../../types"; import styles from "./UserCard.module.css"; type UserCardProps = { user: AllUsersQuery["allUsers"][0] | null; onUser: MouseEventHandler; active: boolean; }; /** If user is null, then it's the special external user */ export const UserCard = ({ user, onUser, active = false }: UserCardProps): JSX.Element => { const classes = clsx(styles.user, { [styles.active]: active }); return ( ); };