Skip to content

Commit 7f67db2

Browse files
committed
Empty tools state
1 parent c9ebeb0 commit 7f67db2

1 file changed

Lines changed: 14 additions & 7 deletions

File tree

src/app/[serverId]/client.tsx

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,19 @@ export function ToolSection({
114114
</Button>
115115
</header>
116116

117-
<ul className="grid gap-4">
118-
{tools.map((tool) => (
119-
<li key={tool.id}>
120-
<ToolCard tool={tool} onEdit={() => setEditingTool(tool)} />
121-
</li>
122-
))}
123-
</ul>
117+
{tools.length === 0 ? (
118+
<p className="text-center text-muted-foreground">
119+
Add a tool to get started
120+
</p>
121+
) : (
122+
<ul className="grid gap-4">
123+
{tools.map((tool) => (
124+
<li key={tool.id}>
125+
<ToolCard tool={tool} onEdit={() => setEditingTool(tool)} />
126+
</li>
127+
))}
128+
</ul>
129+
)}
124130
</section>
125131
)
126132
}
@@ -691,6 +697,7 @@ export function DeleteServerSection({
691697
</Button>
692698
</AlertDialogTrigger>
693699
<AlertDialogContent>
700+
Tools
694701
<AlertDialogHeader>
695702
<AlertDialogTitle>Confirm Server Deletion</AlertDialogTitle>
696703
<AlertDialogDescription className="space-y-2">

0 commit comments

Comments
 (0)