import React, { useEffect, useState } from 'react'; import getFromUserSettings from '/imports/ui/services/users-settings'; import { isDarkThemeEnabled } from '/imports/ui/components/app/service'; import UserList from './component'; import { useStorageKey } from '../../services/storage/hooks'; const UserListContainer = (props) => { const CustomLogoUrl = useStorageKey('CustomLogoUrl', 'session'); const CustomDarkLogoUrl = useStorageKey('CustomDarkLogoUrl', 'session'); const [DarkModeIsEnabled, setDarkModeIsEnabled] = useState(isDarkThemeEnabled()); useEffect(() => { const handleDarkModeChange = (event) => { setDarkModeIsEnabled(event.detail.enabled); }; window.addEventListener('darkmodechange', handleDarkModeChange); return () => { window.removeEventListener('darkmodechange', handleDarkModeChange); }; }, []); return ( ); }; export default UserListContainer;