import { getStore } from "../../backend/stores/rsc-store";
import DevReload from "./dev-reload.js";
import "server-only";

export default function Assets() {
  let { assets, canReload } = getStore();

  return (
    <>
      {assets.map((asset) => (
        <link rel="stylesheet" href={asset} key={asset} precedence="high" />
      ))}
      {canReload && <DevReload />}
    </>
  );
}
