diff --git a/app/dashboard/tables/page.tsx b/app/dashboard/tables/page.tsx
index 2aec187..29a1d76 100644
--- a/app/dashboard/tables/page.tsx
+++ b/app/dashboard/tables/page.tsx
@@ -1,12 +1,59 @@
/* Copyright (C) 2024 Manuel Bustillo*/
+import { Table } from '@/app/ui/components/table';
+import Summary from '@/app/ui/expenses/summary';
import { lusitana } from '@/app/ui/fonts';
-
-export default function Page () {
+
+export default function Page() {
return (
-
);
diff --git a/app/lib/definitions.ts b/app/lib/definitions.ts
index 70eacd2..4a9f09e 100644
--- a/app/lib/definitions.ts
+++ b/app/lib/definitions.ts
@@ -21,9 +21,9 @@ export type Customer = {
export type Guest = {
id: string;
name: string;
- email: string;
- group_name: string;
- status: 'Considered' | 'Invited' | 'Confirmed' | 'Declined' | 'Tentative';
+ email?: string;
+ group_name?: string;
+ status?: 'Considered' | 'Invited' | 'Confirmed' | 'Declined' | 'Tentative';
}
export type Group = {
diff --git a/app/ui/components/table.tsx b/app/ui/components/table.tsx
index 4d830b3..841f6c8 100644
--- a/app/ui/components/table.tsx
+++ b/app/ui/components/table.tsx
@@ -1,5 +1,31 @@
-export function Table() {
- return(
-
I am a table
+import { Guest } from "@/app/lib/definitions";
+
+
+function GuestRow({ guests }: { guests: Guest[] }) {
+ return (
+ {
+ guests.map((guest) => {
+
+ return (
+
+ {guest.name}
+
+ )
+ })
+ }
+
+
)
+}
+
+export function Table({ guests }: { guests: Guest[] }) {
+ const halfwayThrough = Math.floor(guests.length / 2)
+ const arrayFirstHalf = guests.slice(0, halfwayThrough);
+ const arraySecondHalf = guests.slice(halfwayThrough, guests.length);
+
+ return (
+
+
+
+
)
}
\ No newline at end of file