UNPKG

@clubmed/trident-ui

Version:

Shared ClubMed React UI components

26 lines (25 loc) 632 B
import { Direction } from '../../../types/Direction'; import { Devices } from '../../../types/Devices'; export interface DeviceState { all: boolean; small: boolean; medium: boolean; large: boolean; xlarge: boolean; direction: Direction; } export declare const reducer: (state: DeviceState, action: { type: string; payload: boolean; }) => DeviceState; export declare const getInitialState: ({ device, direction, }: { device: Devices; direction: Direction; }) => { direction: Direction; all: boolean; small: boolean; medium: boolean; large: boolean; xlarge: boolean; };