UNPKG

@carbon/ibm-products

Version:

Carbon for IBM Products

18 lines (17 loc) 625 B
import React, { ReactNode } from 'react'; export interface WebTerminalContextType { open?: boolean; openWebTerminal?: () => void; closeWebTerminal?: () => void; toggleWebTerminal?: () => void; } export declare const WebTerminalContext: React.Context<WebTerminalContextType>; interface WebTerminalProviderProps { /** * Provide your own terminal component as children to show up in the web terminal */ children: ReactNode | ReactNode[]; } export declare let WebTerminalProvider: React.FC<WebTerminalProviderProps>; export declare const useWebTerminal: () => WebTerminalContextType; export {};