Interface defining the parameters for the WelcomePage component.

interface WelcomePageParameters {
    imgSrc?: string;
    showAlert?: ShowAlert;
    updateIsLoadingModalVisible: ((visible: boolean) => void);
    connectSocket: ConnectSocketType;
    updateSocket: ((socket: Socket<DefaultEventsMap, DefaultEventsMap>) => void);
    updateValidated: ((validated: boolean) => void);
    updateApiUserName: ((apiUserName: string) => void);
    updateApiToken: ((apiToken: string) => void);
    updateLink: ((link: string) => void);
    updateRoomName: ((roomName: string) => void);
    updateMember: ((userName: string) => void);
}

Properties

imgSrc?: string

Source URL for the logo image. Defaults to 'https://mediasfu.com/images/logo192.png' if not provided.

showAlert?: ShowAlert

Function to display alert messages.

updateIsLoadingModalVisible: ((visible: boolean) => void)

Function to toggle the visibility of the loading modal.

connectSocket: ConnectSocketType

Function to establish a socket connection.

updateSocket: ((socket: Socket<DefaultEventsMap, DefaultEventsMap>) => void)

Function to update the socket instance in the parent state.

updateValidated: ((validated: boolean) => void)

Function to update the validation state in the parent.

updateApiUserName: ((apiUserName: string) => void)

Function to update the API username in the parent state.

updateApiToken: ((apiToken: string) => void)

Function to update the API token in the parent state.

updateLink: ((link: string) => void)

Function to update the event link in the parent state.

updateRoomName: ((roomName: string) => void)

Function to update the room name in the parent state.

updateMember: ((userName: string) => void)

Function to update the member name in the parent state.