10 lines
143 B
TypeScript
10 lines
143 B
TypeScript
import { addToast, update, close } from "./Store";
|
|
|
|
export function useToast() {
|
|
return {
|
|
toast: addToast,
|
|
update,
|
|
close,
|
|
};
|
|
}
|