UNPKG

@guardian/threads

Version:
14 lines (13 loc) 377 B
import React, { ReactNode, ComponentType } from 'react'; declare type HeaderProps = { onToggle: () => void; isOpen?: boolean; }; declare type WithExpanderProps = { isOpen: boolean; onToggle: () => void; children: ReactNode; Header: ComponentType<HeaderProps>; }; export declare const WithExpander: React.FunctionComponent<WithExpanderProps>; export {};