mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 18:17:31 +08:00
22 lines
437 B
TypeScript
22 lines
437 B
TypeScript
import React from 'react';
|
|
|
|
import { ReactComponentOrElement } from '../models';
|
|
|
|
export interface IonContextInterface {
|
|
addOverlay: (
|
|
id: string,
|
|
overlay: ReactComponentOrElement,
|
|
containerElement: HTMLDivElement
|
|
) => void;
|
|
removeOverlay: (id: string) => void;
|
|
}
|
|
|
|
export const IonContext = React.createContext<IonContextInterface>({
|
|
addOverlay: () => {
|
|
return;
|
|
},
|
|
removeOverlay: () => {
|
|
return;
|
|
},
|
|
});
|