feat: add default user icon and participant list entry component
This commit is contained in:
parent
db41e89843
commit
0e0ce4597c
3 changed files with 10 additions and 10 deletions
19
src/components/custom-ui/participant-list-entry.tsx
Normal file
19
src/components/custom-ui/participant-list-entry.tsx
Normal file
|
@ -0,0 +1,19 @@
|
|||
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>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue