import React, { useMemo, useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import Button from '/imports/ui/components/common/button/component'; import { uniqueId } from '/imports/utils/string-utils'; import Styled from '../styles'; import RoomUserList from './room-user-list/component'; import { ChildComponentProps } from '../room-managment-state/types'; const intlMessages = defineMessages({ nextLabel: { id: 'app.createBreakoutRoom.nextLabel', description: 'Next label', }, backLabel: { id: 'app.audio.backLabel', description: 'Back label', }, breakoutRoomDesc: { id: 'app.createBreakoutRoom.modalDesc', description: 'modal description', }, addParticipantLabel: { id: 'app.createBreakoutRoom.addParticipantLabel', description: 'add Participant label', }, breakoutRoomLabel: { id: 'app.createBreakoutRoom.breakoutRoomLabel', description: 'breakout room label', }, }); const BreakoutRoomUserAssignmentMobile: React.FC = ({ numberOfRooms, selectedRoom, setSelectedRoom, moveUser, rooms, }) => { const intl = useIntl(); const [layer, setLayer] = useState<1 | 2 | 3>(1); const btnLevelId = useMemo(() => uniqueId('btn-set-level-'), []); const levelingButton = useMemo(() => { return (