import React, { ReactElement } from 'react' import BookingTable from '../../components/bookingTable' import Layout from '../../components/layout' import withAuth from '../../helpers/withAuth' import { getServerSideRecentBookings } from '../../lib/getServerSideProps' export const getServerSideProps = getServerSideRecentBookings function AdminRecentBookings({ bookings }) { if (!bookings || !bookings.length) { return (

No recent bookings 😿

) } return ( <> {bookings.map((booking: any) => ( ))} ) } export default withAuth(AdminRecentBookings)