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/hooks/useIsSelfHosted.ts

9 lines
302 B

import { useStatistics } from '../views/hooks/useStatistics';
export const useIsSelfHosted = (): { isSelfHosted: boolean; isLoading: boolean } => {
const { data, isLoading } = useStatistics();
const isSelfHosted = data?.deploy?.platform !== 'rocket-cloud';
return { isSelfHosted, isLoading };
};