import React from 'react'
import BookingTable from '../../components/bookingTable'
import Layout from '../../components/layout'
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