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