2024-07-23 18:23:48 +00:00
|
|
|
export const name = 'webln'
|
|
|
|
|
|
|
|
export const fields = []
|
|
|
|
|
2024-07-24 15:08:09 +00:00
|
|
|
export const fieldValidation = ({ enabled }) => {
|
|
|
|
if (typeof window.webln === 'undefined') {
|
|
|
|
// don't prevent disabling WebLN if no WebLN provider found
|
|
|
|
if (enabled) {
|
|
|
|
return {
|
|
|
|
enabled: 'no WebLN provider found'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return {}
|
|
|
|
}
|
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',
|
|
|
|
badges: ['send only']
|
|
|
|
}
|