mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 18:17:31 +08:00
18 lines
426 B
TypeScript
18 lines
426 B
TypeScript
import React from 'react';
|
|
|
|
import type { 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;
|
|
},
|
|
});
|