/
githubmirror
/
ionic
Обзор
Документация
Войти
/
githubmirror
/
ionic
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/react/src/contexts/IonContext.tsx
17 строк
426 B
Liam DeBeasi
chore(react): migrate to eslint, add prettier (#26633)
19 янв 2023, 00:49
Не верифицирован
19 янв 2023, 00:49
b02190d
Код
Авторство
О чём код?
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; }, });