ohctechv3/.svn/pristine/26/26964073559f51090b7f11033bd9237c1fd313c5.svn-base
2024-10-28 15:03:36 +05:30

34 lines
712 B
Plaintext

import { Breakpoint } from '@mui/system';
import { PropInjector } from '@mui/types';
export interface WithWidthOptions {
withTheme?: boolean;
noSSR?: boolean;
initialWidth?: Breakpoint;
resizeInterval?: number;
}
export interface WithWidth {
width: Breakpoint;
}
export interface WithWidthProps extends Partial<WithWidth> {
innerRef?: React.Ref<any>;
}
export function isWidthDown(
breakpoint: Breakpoint,
screenWidth: Breakpoint,
inclusive?: boolean,
): boolean;
export function isWidthUp(
breakpoint: Breakpoint,
screenWidth: Breakpoint,
inclusive?: boolean,
): boolean;
export default function withWidth(
options?: WithWidthOptions,
): PropInjector<WithWidth, WithWidthProps>;