Skip to content

Instantly share code, notes, and snippets.

@popeating
Created November 3, 2023 10:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save popeating/720fb9e2def501717567f48715cb2355 to your computer and use it in GitHub Desktop.
Save popeating/720fb9e2def501717567f48715cb2355 to your computer and use it in GitHub Desktop.
import { contactList } from '@/actions/actions';
import Table from '@/components/table';
export default async function Home() {
const { contacts } = await contactList();
return (
<div className="container mx-auto mb-16">
<h3 className="text-3xl mb-4">MY AMAZING CONTACTS</h3>
<div className="mb-4">
{contacts ? <Table contacts={contacts} /> : 'null'}
</div>
</div>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment