1 parent
7a18682b0e
commit
24fecc90f3
107 files changed
+14935
-1919
No files matched your search
@@ -0,0 +1,31 @@
|
||||
import type { ReactNode } from 'react';
|
||||
import { Avatar } from './Avatar';
|
||||
|
||||
export function PersonRow(props: {
|
||||
name: string;
|
||||
uid?: string | null;
|
||||
sub?: string;
|
||||
status?: string;
|
||||
statusColor?: string;
|
||||
children?: ReactNode;
|
||||
}) {
|
||||
const { name, uid, sub, status, statusColor, children } = props;
|
||||
return (
|
||||
<div className="person">
|
||||
<Avatar name={name} uid={uid} />
|
||||
<div className="person-main">
|
||||
<div className="person-name">{name}</div>
|
||||
{sub && <div className="person-sub">{sub}</div>}
|
||||
</div>
|
||||
{status && (
|
||||
<span
|
||||
className="person-status"
|
||||
style={statusColor ? { color: statusColor } : undefined}
|
||||
>
|
||||
{status}
|
||||
</span>
|
||||
)}
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user