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

19 lines
429 B
JavaScript

import * as React from 'react';
export function useToastContainerContextValues_unstable(state) {
const { close, intent, titleId, bodyId } = state;
const toastContainerContext = React.useMemo(()=>({
close,
intent,
titleId,
bodyId
}), [
close,
intent,
titleId,
bodyId
]);
return {
toast: toastContainerContext
};
}