@kong/kongponents 9.43.3-pr.2953.77fdad2.0 → 9.43.3-pr.2953.9e5e5e4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,7 +7,7 @@ const defaultToastConfig = {
|
|
|
7
7
|
message: 'Success',
|
|
8
8
|
timeoutMilliseconds: 3000,
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export function useToast() {
|
|
11
11
|
// Initialize the toast manager; stub out the `open` and `destroy` methods on the server
|
|
12
12
|
const toast = import.meta.client ? new ToastManager() : { open: () => { }, destroy: () => { } };
|
|
13
13
|
const showToast = async (notification) => {
|