import { Button, InputGroup } from 'react-bootstrap' import React, { useState, useRef, useEffect } from 'react' import { Form, Input, SubmitButton } from './form' import { useMe } from './me' import UpBolt from '../svgs/bolt.svg' import { amountSchema } from '../lib/validate' export default function ItemAct ({ onClose, itemId, act, strike }) { const inputRef = useRef(null) const me = useMe() const [oValue, setOValue] = useState() useEffect(() => { inputRef.current?.focus() }, [onClose, itemId]) return (
{ await act({ variables: { id: itemId, sats: Number(amount) } }) await strike() onClose() }} > sats} />
{[1, 10, 100, 1000, 10000].map(num => )}
tip
) }