feat: add ParticipantListEntry component and integrate draft into event form

This commit is contained in:
micha 2025-06-17 19:01:14 +02:00
parent f5450d9b4f
commit 8369a92520
2 changed files with 41 additions and 2 deletions

View file

@ -0,0 +1,25 @@
import React from 'react';
type ParticipantListEntryProps = {
participant: string;
checked?: boolean;
onCheck?: (checked: boolean) => void;
};
export default function ParticipantListEntry({
participant,
checked = false,
onCheck,
}: ParticipantListEntryProps) {
return (
<div className='flex items-center gap-2 py-1 ml-5'>
<input
type='checkbox'
checked={checked}
onChange={(e) => onCheck?.(e.target.checked)}
className='accent-primary cursor-pointer'
/>
<span>{participant}</span>
</div>
);
}