You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
994 B
25 lines
994 B
import { Label } from '@/components/ui/label' |
|
import { Switch } from '@/components/ui/switch' |
|
import { useZap } from '@/providers/ZapProvider' |
|
import { useTranslation } from 'react-i18next' |
|
|
|
export default function IncludePublicZapReceiptSwitch() { |
|
const { t } = useTranslation() |
|
const { includePublicZapReceipt, updateIncludePublicZapReceipt } = useZap() |
|
|
|
return ( |
|
<div className="w-full flex justify-between items-center gap-3"> |
|
<Label htmlFor="include-public-zap-receipt-switch" className="flex-1"> |
|
<div className="text-base font-medium">{t('Include public zap receipt')}</div> |
|
<div className="text-muted-foreground text-sm font-normal"> |
|
{t('When off, your zap may still succeed but a public receipt may not be published to relays')} |
|
</div> |
|
</Label> |
|
<Switch |
|
id="include-public-zap-receipt-switch" |
|
checked={includePublicZapReceipt} |
|
onCheckedChange={updateIncludePublicZapReceipt} |
|
/> |
|
</div> |
|
) |
|
}
|
|
|