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/components/AppLayoutThemeWrapper.tsx

15 lines
424 B

import { PaletteStyleTag } from '@rocket.chat/fuselage';
import { useDarkMode } from '@rocket.chat/fuselage-hooks';
import type { ReactNode } from 'react';
const AppLayoutThemeWrapper = ({ children }: { children: ReactNode }) => {
const dark = useDarkMode();
return (
<>
<PaletteStyleTag theme={dark ? 'dark' : 'light'} tagId='app-layout-palette' />
{children}
</>
);
};
export default AppLayoutThemeWrapper;