mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
22 lines
415 B
TypeScript
22 lines
415 B
TypeScript
import ActorAvatar from 'sentry/components/avatar/actorAvatar';
|
|
import type {Actor} from 'sentry/types';
|
|
|
|
type Value = {
|
|
actor: Actor;
|
|
};
|
|
|
|
type Props = {
|
|
onRemove: (value: Value) => void;
|
|
value: Value;
|
|
};
|
|
|
|
function ValueComponent({value, onRemove}: Props) {
|
|
return (
|
|
<a onClick={() => onRemove(value)}>
|
|
<ActorAvatar actor={value.actor} size={28} />
|
|
</a>
|
|
);
|
|
}
|
|
|
|
export default ValueComponent;
|