import { getGetServerSideProps } from '@/api/ssrApollo'
import { Form, Input } from '@/components/form'
import { CenterLayout } from '@/components/layout'
import { useMe } from '@/components/me'
import { WalletButtonBar, WalletCard } from '@/components/wallet-card'
import { useMutation } from '@apollo/client'
import { useToast } from '@/components/toast'
import { LNDAutowithdrawSchema } from '@/lib/validate'
import { useRouter } from 'next/router'
import { AutowithdrawSettings, autowithdrawInitial } from '@/components/autowithdraw-shared'
import { REMOVE_WALLET, UPSERT_WALLET_LND, WALLET_BY_TYPE } from '@/fragments/wallet'
import Info from '@/components/info'
import Text from '@/components/text'
const variables = { type: 'LND' }
export const getServerSideProps = getGetServerSideProps({ query: WALLET_BY_TYPE, variables, authRequired: true })
export default function LND ({ ssrData }) {
  const me = useMe()
  const toaster = useToast()
  const router = useRouter()
  const [upsertWalletLND] = useMutation(UPSERT_WALLET_LND)
  const [removeWallet] = useMutation(REMOVE_WALLET)
  const { walletByType: wallet } = ssrData || {}
  return (
    
      LND
      autowithdraw to your Lightning Labs node
      
    
  )
}
export function LNDCard ({ wallet }) {
  return (
    
  )
}