import React from 'react' import BookingTable from '../../components/bookingTable' 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) => ( ))} ) } AdminRecentBookings.authenticationRequired = true export default AdminRecentBookings