MCPcopy Create free account
hub / github.com/TheOrcDev/github-creature / CreatureStatsDialog

Function CreatureStatsDialog

components/creature-stats-dialog.tsx:15–36  ·  view source on GitHub ↗
({
  triggerText = "Stats",
  children,
}: CreatureStatsDialogProps)

Source from the content-addressed store, hash-verified

13} from "@/components/ui/dialog";
14
15interface CreatureStatsDialogProps {
16 triggerText?: string;
17 children: React.ReactNode;
18}
19
20export 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>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected