19 lines
513 B
TypeScript
19 lines
513 B
TypeScript
import React from 'react';
|
|
import Image from 'next/image';
|
|
import { defaultusericon } from '@/assets/usericon/default/defaultusericon-export';
|
|
|
|
type ParticipantListEntryProps = {
|
|
participant: string;
|
|
imageSrc?: string;
|
|
};
|
|
|
|
export default function ParticipantListEntry({
|
|
participant,
|
|
}: ParticipantListEntryProps) {
|
|
return (
|
|
<div className='flex items-center gap-2 py-1 ml-5'>
|
|
<Image src={defaultusericon} alt='Avatar' width={30} height={30} />
|
|
<span>{participant}</span>
|
|
</div>
|
|
);
|
|
}
|