import { useState, useEffect } from 'react'
const baseUrl = typeof window !== 'undefined'
? window.location.origin
: process.env.VITE_VERCEL_URL || 'http://localhost:5173'; // Fallback for your server env
export function Welcome() {
const [ass, setAss] = useState([]);
useEffect(() => {
fetch(`${baseUrl}/characters/collateral/stats.json`)
.then(r => r.json())
.then(j => setAss(j));
});
return (
| STAT |
SCORE |
| INT |
{ass.int} |
| REF |
{ass.ref} |
| DEX |
{ass.dex} |
| TECH |
{ass.tech} |
| COOL |
{ass.cool} |
| WILL |
{ass.will} |
| LUCK |
{ass.luck}/{ass.luck} |
| MOVE |
{ass.move} |
| BODY |
{ass.body} |
| EMP |
{ass.emp}/{ass.emp} |
/*
*/
);
}
const resources = [
{
href: "https://reactrouter.com/docs",
text: "React Router Docs",
icon: (
),
},
{
href: "https://rmx.as/discord",
text: "Join Discord",
icon: (
),
},
{
href: "https://rmx.as/discord",
text: "Join Discord",
icon: (
),
},
];