;
export default meta;
export const Context = () => {
const counter = useRef(0);
function handleClick() {
counter.current += 1;
addToast(`Toast num. ${counter.current}`, {
expiration: 5000,
});
}
function throwError() {
try {
throw new Error("Custom error message");
} catch (e) {
notifyError(e);
}
}
return (
);
};