export function useMethod(opts: IElementClientOptions): IElementClient | null {
const [loading] = useScript({
src: 'https://static.methodfi.com/elements/v1/stable/init.js',
checkForExisting: true,
});
// @ts-ignore
return !loading ? new window.Method(opts) : null;
}