({
triggerText = "Stats",
children,
}: CreatureStatsDialogProps)
| 13 | } from "@/components/ui/dialog"; |
| 14 | |
| 15 | interface CreatureStatsDialogProps { |
| 16 | triggerText?: string; |
| 17 | children: React.ReactNode; |
| 18 | } |
| 19 | |
| 20 | export default function CreatureStatsDialog({ |
| 21 | triggerText = "Stats", |
| 22 | children, |
| 23 | }: CreatureStatsDialogProps) { |
| 24 | return ( |
| 25 | <Dialog> |
| 26 | <DialogTrigger |
| 27 | render={ |
| 28 | <Button |
| 29 | variant="outline" |
| 30 | size="sm" |
| 31 | className="gap-2 bg-background text-foreground shadow-sm" |
| 32 | > |
| 33 | <HugeiconsIcon data-icon="inline-start" icon={Analytics01Icon} /> |
| 34 | {triggerText} |
| 35 | </Button> |
| 36 | } |
| 37 | /> |
| 38 | <DialogContent className="sm:max-w-md p-0"> |
| 39 | <DialogTitle className="sr-only">Creature stats</DialogTitle> |
nothing calls this directly
no outgoing calls
no test coverage detected