aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/groups/page.tsx
blob: 86c63ac5ec6f356828d1597b5d0aaa97ad87064f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { RecentGroupList } from '@/app/groups/recent-group-list'
import { Button } from '@/components/ui/button'
import { Metadata } from 'next'
import Link from 'next/link'

export const metadata: Metadata = {
  title: 'Recently visited groups',
}

export default async function GroupsPage() {
  return (
    <main>
      <h1 className="font-bold text-2xl mb-4">
        <Link href="/groups">Recently visited groups</Link>
      </h1>
      <Button asChild>
        <Link href="/groups/create">New group</Link>
      </Button>
      <RecentGroupList />
    </main>
  )
}