diff --git a/src/components/AssetCard.astro b/src/components/AssetCard.astro index b36f122..66c3738 100644 --- a/src/components/AssetCard.astro +++ b/src/components/AssetCard.astro @@ -3,20 +3,8 @@ interface Props { asset: Asset; } import { Image } from "astro:assets"; +import { ASSET_URL, type Asset } from "@/lib/asset"; import { Ban, CircleAlert, UserRoundPlus } from "lucide-astro"; -interface Asset { - name: string; - image: string; - link?: string; - links?: { name: string; url: string }[]; - say?: string; - custom?: boolean; - partial?: boolean | string; - error?: boolean | string; - blank?: boolean | string; -} - -export const ASSET_URL = "https://raw.githubusercontent.com/UseInterstellar/Interstellar-Assets/main"; const { asset } = Astro.props; export const prerender = false; @@ -35,13 +23,7 @@ export const prerender = false;