// Dependencies
import { linkClasses } from '@freesewing/utils'
// Hooks
import React, { useEffect, useState } from 'react'
import { useAccount } from '@freesewing/react/hooks/useAccount'
export const PleaseSubscribe = (props = {}) => (
Hi friend
👋
{[
'My name is Joost De Cock. I am the founder and maintainer of FreeSewing.',
'I am here to ask your help. Or more accurately, your support. Which we really need.',
'If you think FreeSewing is worthwhile, and if you can spare a few coins each month without hardship, please support our work.',
'Thanks in advance for considering it.',
'love',
].map((txt, i) => (
{txt}
))}
)
const PaypalFormBody = ({ amount, period, currency }) => (
<>
{[
...Object.entries(paypalConfig.vars[period === 'x' ? 'donate' : 'subscribe']),
...Object.entries(paypalConfig.vars.shared),
].map(([name, value]) => (