Created
November 3, 2023 13:01
-
-
Save popeating/ec991721a6b6f6c9523616f12ceae842 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { contactList } from '@/actions/actions'; | |
import Add from '@/components/add'; | |
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> | |
<Add /> | |
</div> | |
</div> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment