/* * Derived from vercel/ai-elements (skills/ai-elements/scripts/environment-variables.tsx). * Copyright 2023 Vercel, Inc. Licensed under Apache-2.0. * Modified by ZCode: local integration, formatting and adaptations. * See THIRD-PARTY-NOTICES.md in the repository root for license and provenance. */ "use client"; import { EnvironmentVariable, EnvironmentVariableCopyButton, EnvironmentVariableGroup, EnvironmentVariableName, EnvironmentVariableRequired, EnvironmentVariables, EnvironmentVariablesContent, EnvironmentVariablesHeader, EnvironmentVariablesTitle, EnvironmentVariablesToggle, EnvironmentVariableValue, } from "@/components/ai-elements/environment-variables"; const variables = [ { name: "DATABASE_URL", required: true, value: "postgresql://localhost:5432/mydb", }, { name: "API_KEY", required: true, value: "sk-1234567890abcdef" }, { name: "NODE_ENV", required: false, value: "production" }, { name: "PORT", required: false, value: "3000" }, ]; const handleCopy = () => { console.log("Copied!"); }; const Example = () => ( {variables.map((variable) => ( {variable.required && } ))} ); export default Example;