import { serverClient } from "@/lib/trpc/server" import EmptyPreviousStaysBlock from "../EmptyPreviousStays" import Header from "../Header" import StayList from "../StayList" import styles from "./previous.module.css" import type { LangParams } from "@/types/params" export default async function PreviousStays({ lang }: LangParams) { const stays = await serverClient().user.stays.previous() return (
{stays.length ? ( ) : ( )}
) }