2024-05-28 12:18:54 -05:00
|
|
|
import Invoice from '@/components/invoice'
|
2024-03-20 01:37:31 +01:00
|
|
|
import { CenterLayout } from '@/components/layout'
|
2021-10-26 15:49:37 -05:00
|
|
|
import { useRouter } from 'next/router'
|
2024-07-01 12:02:29 -05:00
|
|
|
import { INVOICE_FULL } from '@/fragments/wallet'
|
2024-03-20 01:37:31 +01:00
|
|
|
import { getGetServerSideProps } from '@/api/ssrApollo'
|
2024-02-13 23:40:26 +01:00
|
|
|
|
|
|
|
// force SSR to include CSP nonces
|
|
|
|
export const getServerSideProps = getGetServerSideProps({ query: null })
|
2021-05-06 16:15:22 -05:00
|
|
|
|
2021-10-26 15:49:37 -05:00
|
|
|
export default function FullInvoice () {
|
|
|
|
const router = useRouter()
|
2021-05-06 16:15:22 -05:00
|
|
|
|
2023-07-23 10:08:43 -05:00
|
|
|
return (
|
|
|
|
<CenterLayout>
|
2024-11-27 22:54:00 +01:00
|
|
|
<Invoice id={router.query.id} query={INVOICE_FULL} poll description status='loading' bolt11Info />
|
2023-07-23 10:08:43 -05:00
|
|
|
</CenterLayout>
|
|
|
|
)
|
2021-05-06 16:15:22 -05:00
|
|
|
}
|