Interface ConfirmExitModalOptions

Interface defining the options required by the ConfirmExitModal component.

interface ConfirmExitModalOptions {
    isConfirmExitModalVisible: boolean;
    onConfirmExitClose: (() => void);
    position?:
        | "topLeft"
        | "topRight"
        | "bottomLeft"
        | "bottomRight";
    backgroundColor?: string;
    exitEventOnConfirm?: ((options: ConfirmExitOptions) => void);
    member: string;
    ban?: boolean;
    roomName: string;
    socket: Socket<DefaultEventsMap, DefaultEventsMap>;
    islevel: string;
}

Properties

isConfirmExitModalVisible: boolean

Determines if the modal is visible.

onConfirmExitClose: (() => void)

Callback function to close the modal.

position?:
    | "topLeft"
    | "topRight"
    | "bottomLeft"
    | "bottomRight"

Position of the modal on the screen.

"topRight"
backgroundColor?: string

Background color of the modal.

"#83c0e9"
exitEventOnConfirm?: ((options: ConfirmExitOptions) => void)

Event handler function to be called on confirming exit.

confirmExit
member: string

Name of the member exiting.

ban?: boolean

Flag indicating if the member is banned.

roomName: string

Name of the room.

socket: Socket<DefaultEventsMap, DefaultEventsMap>

Socket object for communication.

islevel: string

Level of the user (e.g., "1", "2").