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.

25 lines (18 loc) 524 B
// @flow type RoundedBorders = {| top: boolean, bottom: boolean, |}; export type Context = {| +setExpandedSections: (arr: number[]) => void, +roundedBorders: RoundedBorders, +addSection: (index: number) => void, +removeSection: (index: number) => void, +index: number, +isOpened: boolean, +noBorderTop: boolean, |}; declare export var cardDefault: Context; declare export var context: React.Context<Context>; declare export function useCard(): Context; export const { Consumer, Provider } = context;