🚚(frontend) move participant list code into a feature folder

Reorganize all participant list related code elements into a
dedicated feature folder, so related components, hooks and helpers
are grouped together and easier to locate.
This commit is contained in:
lebaudantoine
2026-07-17 17:52:55 +02:00
committed by aleb_the_flash
parent 64b4200fc3
commit d1dde71bea
22 changed files with 20 additions and 20 deletions
@@ -0,0 +1,21 @@
import type { Participant } from 'livekit-client'
import { useLowerHandParticipant } from './lowerHandParticipant'
export const useLowerHandParticipants = () => {
const { lowerHandParticipant } = useLowerHandParticipant()
const lowerHandParticipants = (participants: Array<Participant>) => {
try {
const promises = participants.map((participant) =>
lowerHandParticipant(participant)
)
return Promise.all(promises)
} catch (error) {
console.error('An error occurred while lowering hands :', error)
throw new Error('An error occurred while lowering hands.', {
cause: error,
})
}
}
return { lowerHandParticipants }
}