UNPKG

@kiwicom/orbit-components

Version:

Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com’s products.

27 lines (26 loc) 841 B
import * as React from "react"; import type { Type } from "./TimelineStep/types"; type Statuses = Record<string, Type>; interface Context { types: Statuses; isColumnOnDesktop: boolean; setTypes: React.Dispatch<React.SetStateAction<Statuses>>; } interface StepContext { index: number; last: boolean; } export declare const TimelineStatusContext: React.Context<Context>; export declare const TimelineStepContext: React.Context<StepContext>; export declare const TimelineStatusProvider: ({ children, direction }: { children: any; direction: any; }) => JSX.Element; export declare const TimelineStepProvider: ({ children, index, last }: { children: any; index: any; last: any; }) => JSX.Element; export declare const useStep: () => StepContext; export declare const useStatuses: () => Context; export {};