mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-29 13:22:47 -08:00
10 lines
353 B
TypeScript
10 lines
353 B
TypeScript
import { ScreenSize, useScreenSizeContext } from '$hooks/useScreenSize';
|
|
import { UserQuickTools } from '$pages/client/sidebar/UserQuickTools';
|
|
|
|
export function UserQuickToolsProvider() {
|
|
const screenSize = useScreenSizeContext();
|
|
const compact = screenSize === ScreenSize.Mobile;
|
|
if (!compact) return null;
|
|
return <UserQuickTools compact />;
|
|
}
|