diff --git a/frontend/src/app/scripts/_components/ScriptItems/Buttons.tsx b/frontend/src/app/scripts/_components/ScriptItems/Buttons.tsx
index 00a667827..cb46e437b 100644
--- a/frontend/src/app/scripts/_components/ScriptItems/Buttons.tsx
+++ b/frontend/src/app/scripts/_components/ScriptItems/Buttons.tsx
@@ -5,45 +5,53 @@ import { BookOpenText, Code, Globe } from "lucide-react";
import Link from "next/link";
const generateSourceUrl = (slug: string, type: string) => {
- if (type === "ct") {
- return `https://raw.githubusercontent.com/community-scripts/${basePath}/main/install/${slug}-install.sh`;
- } else {
- return `https://raw.githubusercontent.com/community-scripts/${basePath}/main/${type}/${slug}.sh`;
- }
+ const baseUrl = `https://raw.githubusercontent.com/community-scripts/${basePath}/main`;
+ return type === "ct"
+ ? `${baseUrl}/install/${slug}-install.sh`
+ : `${baseUrl}/${type}/${slug}.sh`;
};
+interface ButtonLinkProps {
+ href: string;
+ icon: React.ReactNode;
+ text: string;
+}
+
+const ButtonLink = ({ href, icon, text }: ButtonLinkProps) => (
+
+);
+
export default function Buttons({ item }: { item: Script }) {
+ const buttons = [
+ item.website && {
+ href: item.website,
+ icon: ,
+ text: "Source Code",
+ },
+ ].filter(Boolean) as ButtonLinkProps[];
+
return (
+ You can use the following credentials to login to the {item.name}{" "} + {item.type}. +
+ {["username", "password"].map((type) => ( +- You can use the following credentials to login to the {""} - {item.name} {item.type}. -
-CPU: {cpu}vCPU
++ RAM: {getDisplayValueFromRAM(ram ?? 0)} +
+HDD: {hdd}GB
+- CPU: {defaultSettings?.resources.cpu}vCPU -
-- RAM: {getDisplayValueFromRAM(defaultSettings?.resources.ram ?? 0)} -
-- HDD: {defaultSettings?.resources.hdd}GB -
-- CPU: {defaultAlpineSettings?.resources.cpu}vCPU -
-- RAM:{" "} - {getDisplayValueFromRAM(defaultAlpineSettings?.resources.ram ?? 0)} -
-- HDD: {defaultAlpineSettings?.resources.hdd}GB -
-