The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/client/views/admin/customSounds/CustomSoundsRoute.tsx

18 lines
499 B

import { usePermission } from '@rocket.chat/ui-contexts';
import type { ReactElement } from 'react';
import React from 'react';
import NotAuthorizedPage from '../../notAuthorized/NotAuthorizedPage';
import CustomSoundsPage from './CustomSoundsPage';
const CustomSoundsRoute = (): ReactElement => {
const canManageCustomSounds = usePermission('manage-sounds');
if (!canManageCustomSounds) {
return <NotAuthorizedPage />;
}
return <CustomSoundsPage />;
};
export default CustomSoundsRoute;