2024-07-23 18:23:48 +00:00
|
|
|
export const name = 'webln'
|
2024-10-14 15:49:06 +00:00
|
|
|
export const walletType = 'WEBLN'
|
|
|
|
export const walletField = 'walletWebLN'
|
2024-07-23 18:23:48 +00:00
|
|
|
|
2024-10-25 19:10:37 +00:00
|
|
|
export const validate = ({ enabled }) => {
|
2024-10-27 07:43:45 +00:00
|
|
|
if (enabled && typeof window !== 'undefined' && !window?.webln) {
|
2024-10-25 19:10:37 +00:00
|
|
|
throw new Error('no WebLN provider found')
|
2024-07-24 15:08:09 +00:00
|
|
|
}
|
|
|
|
}
|
2024-07-23 18:23:48 +00:00
|
|
|
|
2024-10-25 19:10:37 +00:00
|
|
|
export const fields = []
|
|
|
|
|
2024-07-23 18:23:48 +00:00
|
|
|
export const card = {
|
|
|
|
title: 'WebLN',
|
|
|
|
subtitle: 'use a [WebLN provider](https://www.webln.guide/ressources/webln-providers) for payments',
|
2024-10-22 19:07:09 +00:00
|
|
|
badges: ['send']
|
2024-07-23 18:23:48 +00:00
|
|
|
}
|