Skip to content

Commit

Permalink
feat(apps/web): ui improvements to EntitiesDropdownWrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
eckoln committed May 26, 2024
1 parent ee4329b commit 1514893
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,29 @@
import Link from 'next/link'

import { PlusIcon } from 'lucide-react'

import { Button } from '@/components/ui/button'

import { getUserEntities } from '@/data-layer/queries/user'

import { EntitiesDropdown } from './entities-dropdown'

export async function EntitiesDropdownWrapper() {
const entities = await getUserEntities('joined')

if (!entities.length) {
return (
<Button variant="outline" asChild>
<Link
className="flex items-center space-x-2"
href="/dashboard/settings/servers"
>
<PlusIcon className="size-4" />
<span>Get Senchabot</span>
</Link>
</Button>
)
}

return <EntitiesDropdown entities={entities} />
}

0 comments on commit 1514893

Please sign in to comment.