20 lines
443 B
JavaScript
20 lines
443 B
JavaScript
'use client';
|
|
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
|
|
};
|
|
}
|