UNPKG

@gear-js/react-hooks

Version:
10 lines (9 loc) 464 B
import { ComponentType } from 'react'; import { ProviderProps, AlertTemplateProps, AlertContainerFactory } from '../types'; type Props = ProviderProps & { template: ComponentType<AlertTemplateProps>; containerClassName?: string; }; declare const AlertProvider: ({ children, template: Template, containerClassName }: Props) => import("react/jsx-runtime").JSX.Element; declare const useAlert: () => AlertContainerFactory; export { AlertProvider, useAlert };