1 | import { Breakpoint } from '@mui/system';
|
2 | import { PropInjector } from '@mui/types';
|
3 |
|
4 | export interface WithWidthOptions {
|
5 | withTheme?: boolean;
|
6 | noSSR?: boolean;
|
7 | initialWidth?: Breakpoint;
|
8 | resizeInterval?: number;
|
9 | }
|
10 |
|
11 | export interface WithWidth {
|
12 | width: Breakpoint;
|
13 | }
|
14 |
|
15 | export interface WithWidthProps extends Partial<WithWidth> {
|
16 | innerRef?: React.Ref<any>;
|
17 | }
|
18 |
|
19 | export function isWidthDown(
|
20 | breakpoint: Breakpoint,
|
21 | screenWidth: Breakpoint,
|
22 | inclusive?: boolean,
|
23 | ): boolean;
|
24 |
|
25 | export function isWidthUp(
|
26 | breakpoint: Breakpoint,
|
27 | screenWidth: Breakpoint,
|
28 | inclusive?: boolean,
|
29 | ): boolean;
|
30 |
|
31 | export default function withWidth(
|
32 | options?: WithWidthOptions,
|
33 | ): PropInjector<WithWidth, WithWidthProps>;
|