webapp/src/components/Inbox/InviteUser.tsx
Untone bd1b0025e7
Some checks failed
deploy / test (push) Failing after 1m43s
deploy / deploy (push) Has been skipped
types-fixed
2023-12-24 16:08:04 +03:00

26 lines
665 B
TypeScript

import type { Author } from '../../graphql/schema/core.gen'
import { Icon } from '../_shared/Icon'
import DialogAvatar from './DialogAvatar'
import styles from './InviteUser.module.scss'
type DialogProps = {
author: Author
selected: boolean
onClick: () => void
}
const InviteUser = (props: DialogProps) => {
return (
<div class={styles.InviteUser} onClick={props.onClick}>
<DialogAvatar name={props.author.name} url={props.author.pic} />
<div class={styles.name}>{props.author.name}</div>
<div class={styles.action}>{props.selected ? <Icon name="cross" /> : <Icon name="plus" />}</div>
</div>
)
}
export default InviteUser