import CodeCopyButton from "@/components/ui/code-copy-button"; import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; import { Script } from "@/lib/types"; export default function InstallCommand({ item }: { item: Script }) { const { title, item_type, installCommand, expand } = item; const hasAlpineScript = expand?.alpine_script !== undefined; const renderInstructions = (isAlpine = false) => ( <>
{isAlpine ? ( <> As an alternative option, you can use Alpine Linux and the {title}{" "} package to create a {title} {item_type} container with faster creation time and minimal system resource usage. You are also obliged to adhere to updates provided by the package maintainer. > ) : item_type ? ( <> To create a new Proxmox VE {title} {item_type}, run the command below in the Proxmox VE Shell. > ) : ( <>To use the {title} script, run the command below in the shell.> )}
{isAlpine && (To create a new Proxmox VE Alpine-{title} {item_type}, run the command below in the Proxmox VE Shell
)} > ); return (