mirror of
https://github.com/suitenumerique/meet.git
synced 2026-08-16 13:38:35 +00:00
3be5a5afc6
This hook will be used by the toggle and the sidepanel to make sure the users have sufficient permissions to access the transcript features.
7 lines
163 B
TypeScript
7 lines
163 B
TypeScript
import { useRoomData } from './useRoomData'
|
|
|
|
export const useIsAdminOrOwner = () => {
|
|
const apiRoomData = useRoomData()
|
|
return apiRoomData?.is_administrable
|
|
}
|