Files
powerpoint-toolbox/node_modules/@fluentui/react-alert/lib/components/Alert/Alert.js
T
2025-03-07 19:22:02 +01:00

21 lines
952 B
JavaScript

import * as React from 'react';
import { renderAlert_unstable } from './renderAlert';
import { useAlert_unstable } from './useAlert';
import { useAlertStyles_unstable } from './useAlertStyles.styles';
/**
* @deprecated please use the Toast or MessageBar component
* An Alert component displays a brief, important message to attract a user's attention
* without interrupting their current task.
*/ // eslint-disable-next-line deprecation/deprecation
export const Alert = /*#__PURE__*/ React.forwardRef((props, ref)=>{
// eslint-disable-next-line deprecation/deprecation
const state = useAlert_unstable(props, ref);
// eslint-disable-next-line deprecation/deprecation
useAlertStyles_unstable(state);
// eslint-disable-next-line deprecation/deprecation
return renderAlert_unstable(state);
// eslint-disable-next-line deprecation/deprecation
});
// eslint-disable-next-line deprecation/deprecation
Alert.displayName = 'Alert';