import React, { useState } from 'react'; import { Link } from 'react-router-dom'; import './light.css'; import { Container, Grid, Header, Input } from 'semantic-ui-react'; import { PayPalPayNow, PayPalSubscribe } from './PayPal.js'; export function Paymaster(props) { const { user } = props; const [pop, setPop] = useState('20.00'); const [locker, setLocker] = useState('5.00'); const [consumables, setConsumables] = useState('20.00'); const [buyProtocoin, setBuyProtocoin] = useState('10.00'); const [consumablesMemo, setConsumablesMemo] = useState(''); const [donate, setDonate] = useState('20.00'); const [memo, setMemo] = useState(''); const monthly_fees = user.member.monthly_fees || 55; return (
Paymaster

Use these buttons to send money to Protospace.

Protocoin

Protocoin is used to buy things at Protospace's vending machines. Current balance: ₱ {user.member.protocoin}

Buy {buyProtocoin} Protocoin:
setBuyProtocoin(v.value)} />
Snacks, Pop, Coffee

Pay $5.00:

Pay $10.00:

Custom amount:
setPop(v.value)} />
Member Dues

Pay ${monthly_fees}.00 once:

Subscribe ${monthly_fees}.00 / month:

Pay ${monthly_fees * 11}.00 for a year:

...get one month for free!

Consumables

Pay for materials you use (ie. welding gas, 3D printing, blades, etc).

Custom amount:
setConsumables(v.value)} />

Please explain what you bought:
setConsumablesMemo(v.value)} />

Donate
Custom amount:
setDonate(v.value)} />

Optional memo:
setMemo(v.value)} />

Locker Storage

Confirm location and availability with Scott Young before subscribing.

Custom amount:
setLocker(v.value)} />
); };