Files
Echoion/EchoionWeb/frontend/src/components/PersonRow.tsx
T
faumaray 24fecc90f3 making WEB
Signed-off-by: faumaray <faumaray@gmail.com>
2026-07-11 00:47:52 +03:00

32 lines
699 B
TypeScript

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>
);
}