diff --git a/ui/src/components/ui/command.tsx b/ui/src/components/ui/command.tsx index 8cb4ca7a..bd2ee877 100644 --- a/ui/src/components/ui/command.tsx +++ b/ui/src/components/ui/command.tsx @@ -2,7 +2,8 @@ import * as React from "react" import { Command as CommandPrimitive } from "cmdk" -import { SearchIcon } from "lucide-react" +import { SearchIcon, XIcon } from "lucide-react" +import { Dialog as DialogPrimitive } from "radix-ui" import { cn } from "@/lib/utils" import { @@ -50,11 +51,20 @@ function CommandDialog({ {children} + {showCloseButton && ( + + + Close + + )} )