import handleCopy from "@/components/handleCopy"; import { Button } from "@/components/ui/button"; import { Separator } from "@/components/ui/separator"; import { Script } from "@/lib/types"; export default function DefaultPassword({ item }: { item: Script }) { const { username, password } = item.default_credentials; const hasDefaultLogin = username && password; if (!hasDefaultLogin) return null; const copyCredential = (type: "username" | "password") => { handleCopy(type, item.default_credentials[type] ?? ""); }; return (
You can use the following credentials to login to the {item.name} {item.type}.
{["username", "password"].map((type) => (