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