diff --git a/app/components/skin_dialog.tsx b/app/components/skin_dialog.tsx new file mode 100644 index 0000000..76bfdf9 --- /dev/null +++ b/app/components/skin_dialog.tsx @@ -0,0 +1,101 @@ +import { Button, Modal, Surface, Typography } from "@heroui/react"; +import type { Dispatch, SetStateAction } from "react"; +import { AgentInfo, WeaponInfo } from "~/types/skin"; +import { Float } from "./float"; + +export function SkinDialog({ + isOpen, + setIsOpen, + skin, +}: { + isOpen: boolean; + setIsOpen: Dispatch>; + skin: WeaponInfo | AgentInfo; +}) { + const acolor = `${skin.color}64`; + return ( + + { + setIsOpen(false); + return true; + }} + > + + + { + setIsOpen(false); + }} + /> + +
+ + {skin.display} + + + {skin instanceof WeaponInfo && ( + <> + + Float: {skin.float} + + + + )} + {skin instanceof WeaponInfo && ( + + Pattern: {skin.pattern} + + )} + + Transaction id: {skin.id} + +
+
+
+
+
+
+ ); +}