()
| 29 | } |
| 30 | |
| 31 | export function SupportSlot() { |
| 32 | const [open, setOpen] = useState(false); |
| 33 | return ( |
| 34 | <Dialog open={open} onOpenChange={setOpen}> |
| 35 | <Button |
| 36 | type="button" |
| 37 | variant="ghost" |
| 38 | onClick={() => { |
| 39 | trackEvent("support_opened"); |
| 40 | setOpen(true); |
| 41 | }} |
| 42 | className="flex h-auto w-full items-center justify-start gap-2.5 rounded-md px-2.5 py-1.5 text-sm font-normal text-sidebar-foreground hover:bg-sidebar-active/60 hover:text-foreground" |
| 43 | > |
| 44 | <HelpIcon className="size-3.5 text-muted-foreground" /> |
| 45 | Get support |
| 46 | </Button> |
| 47 | {/* Static links only: clicking away dismisses it. */} |
| 48 | <DialogContent dismissOnOutsideClick className="sm:max-w-[440px]"> |
| 49 | <DialogHeader> |
| 50 | <DialogTitle className="font-display text-xl">Get support</DialogTitle> |
| 51 | <DialogDescription className="text-sm leading-relaxed"> |
| 52 | Reach out through any of the channels below. |
| 53 | </DialogDescription> |
| 54 | </DialogHeader> |
| 55 | <div className="py-2"> |
| 56 | <SupportOptions /> |
| 57 | </div> |
| 58 | </DialogContent> |
| 59 | </Dialog> |
| 60 | ); |
| 61 | } |
nothing calls this directly
no test coverage detected