import { getLists } from '@/lib/actions' import ListCard from '@/components/ListCard' import NewListButton from '@/components/NewListButton' import GlobalSearch from '@/components/GlobalSearch' import EmptyState from '@/components/EmptyState' import Link from 'next/link' import { auth } from '@/auth' export const dynamic = 'force-dynamic' export default async function Home() { const lists = await getLists() const session = await auth() return (

Ultimate Lists

{session?.user && ( <> Invitations Profile )}
{/* Global Search */}
{lists.length === 0 ? ( } /> ) : (
{lists.map((list) => ( ))}
)}
) }