@daily-co/daily-react
Version:
Daily React makes it easier to integrate [@daily-co/daily-js](https://www.npmjs.com/package/@daily-co/daily-js) in React applications.
14 lines (13 loc) • 554 B
TypeScript
import { DailyCall, DailyFactoryOptions } from '@daily-co/daily-js';
import { MutableRefObject } from 'react';
declare type InstanceType = 'callFrame' | 'callObject';
export interface Props {
parentElRef?: MutableRefObject<HTMLElement>;
options?: DailyFactoryOptions;
shouldCreateInstance?(): boolean;
}
/**
* Helper hook to maintain custom call instances in React codebases.
*/
export declare const useCallInstance: (type: InstanceType, { parentElRef, options, shouldCreateInstance, }?: Props) => DailyCall | null;
export {};