@gravity-ui/uikit
Version:
Gravity UI base styling and components
11 lines (10 loc) • 360 B
JavaScript
'use client';
import * as React from 'react';
import { AlertContext } from "./AlertContext.js";
export const useAlertContext = () => {
const context = React.useContext(AlertContext);
if (!context)
throw new Error('Alert: `useAlertContext` hook is used out of "AlertContext"');
return context;
};
//# sourceMappingURL=useAlertContext.js.map