Added logging, changed some directory structure

This commit is contained in:
2018-01-13 21:33:40 -05:00
parent f079a5f067
commit 8e72ffb917
73656 changed files with 35284 additions and 53718 deletions

View File

@@ -0,0 +1,21 @@
import { Breakpoint } from '../styles/createBreakpoints';
export interface WithWidthOptions {
resizeInterval: number;
}
export interface WithWidthProps {
width: Breakpoint;
}
export function isWidthUp(
breakpoint: Breakpoint,
screenWidth: number,
inclusive?: boolean
): boolean;
export default function withWidth<P = {}>(
options?: WithWidthOptions
): (
component: React.ComponentType<P>
) => React.ComponentClass<P & WithWidthProps>;