UNPKG

@sendbird/uikit-react

Version:

Sendbird UIKit for React: A feature-rich and customizable chat UI kit with messaging, channel management, and user authentication.

28 lines (27 loc) 818 B
import { VoicePlayerInitialState } from './initialState'; type InitializeAudioUnitPayload = { groupKey: string; }; type SetCurrentPlayerPayload = { audioPlayer: HTMLAudioElement; groupKey: string; }; type OnVoicePlayerPlayPayload = { groupKey: string; audioFile: File; }; type OnVoicePlayerPausePayload = { groupKey: string; duration: number; currentTime: number; }; type OnCurrentTimeUpdatePayload = { groupKey: string; }; type PayloadType = (InitializeAudioUnitPayload | SetCurrentPlayerPayload | OnVoicePlayerPlayPayload | OnVoicePlayerPausePayload | OnCurrentTimeUpdatePayload); type ActionType = { type: string; payload: PayloadType; }; export default function voicePlayerReducer(state: VoicePlayerInitialState, action: ActionType): VoicePlayerInitialState; export {};