✨(frontend) add admin side panel for room management
Introduce new dedicated side panel for room administration, providing centralized interface for admins to manage room settings and participants. Content will be added in the upcoming commits.
This commit is contained in:
committed by
aleb_the_flash
parent
7c46029f87
commit
5d89efec78
@@ -11,6 +11,7 @@ import { ReactNode } from 'react'
|
||||
import { Chat } from '../prefabs/Chat'
|
||||
import { Transcript } from './Transcript'
|
||||
import { Effects } from './effects/Effects'
|
||||
import { Admin } from './Admin'
|
||||
|
||||
type StyledSidePanelProps = {
|
||||
title: string
|
||||
@@ -108,6 +109,7 @@ export const SidePanel = () => {
|
||||
isChatOpen,
|
||||
isSidePanelOpen,
|
||||
isTranscriptOpen,
|
||||
isAdminOpen,
|
||||
} = useSidePanel()
|
||||
const { t } = useTranslation('rooms', { keyPrefix: 'sidePanel' })
|
||||
|
||||
@@ -132,6 +134,9 @@ export const SidePanel = () => {
|
||||
<Panel isOpen={isTranscriptOpen}>
|
||||
<Transcript />
|
||||
</Panel>
|
||||
<Panel isOpen={isAdminOpen}>
|
||||
<Admin />
|
||||
</Panel>
|
||||
</StyledSidePanel>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user