UNPKG

@dynamic-labs/sdk-react-core

Version:

A React SDK for implementing wallet web3 authentication and authorization to your website.

16 lines (12 loc) 430 B
'use client' 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); const downloadFile = (fileName, content) => { const element = document.createElement('a'); const file = new Blob([content], { type: 'text/plain' }); element.href = URL.createObjectURL(file); element.download = fileName; document.body.appendChild(element); element.click(); }; exports.downloadFile = downloadFile;