import { Health } from "./health"; const baseUrl = typeof window !== "undefined" ? window.location.origin : process.env.VITE_VERCEL_URL || "http://localhost:5173"; // Fallback for your server env const st = await fetch(`${baseUrl}/characters/collateral/stats.json`).then( (r) => r.json(), ); const sk = await fetch(`${baseUrl}/characters/collateral/skills.json`).then( (r) => r.json(), ); const dt = await fetch(`${baseUrl}/characters/collateral/details.json`).then( (r) => r.json(), ); function RockerRole({ rank }) { const topDiv = { display: "flex", flexDirection: "column", marginTop: "10px", paddingTop: "10px", borderTop: "1px solid var(--color-border-default)", }; if (rank > 0) { return ( Rocker {rank} ); } return ; } function TechRole({ rank, fabrication, upgrade, field }) { const topDiv = { display: "flex", flexDirection: "column", marginTop: "10px", paddingTop: "10px", borderTop: "1px solid var(--color-border-default)", }; if (rank > 0) { return ( TECH {rank} -- Fabrication Expertiese: {fabrication} -- Upgrade Expertiese: {upgrade} -- Field Expertiese: {field} ); } return ; } export function Details() { return ( ); }