@letanure/resend-cli
Version:
A command-line interface for Resend email API
14 lines • 546 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { createContext, useContext } from 'react';
const DryRunContext = createContext(null);
export const DryRunProvider = ({ children, isDryRun = false }) => {
return _jsx(DryRunContext.Provider, { value: { isDryRun }, children: children });
};
export const useDryRun = () => {
const context = useContext(DryRunContext);
if (!context) {
throw new Error('useDryRun must be used within a DryRunProvider');
}
return context;
};
//# sourceMappingURL=DryRunProvider.js.map