import { FormSection } from '@@/form-components/FormSection'; import { TextTip } from '@@/Tip/TextTip'; import { ArrayError } from '../InputList/InputList'; import { Value } from './types'; import { EnvironmentVariablesFieldset } from './EnvironmentVariablesFieldset'; export function EnvironmentVariablesPanel({ explanation, onChange, values, showHelpMessage, errors, isFoldable = false, }: { explanation?: string; values: Value; onChange(value: Value): void; showHelpMessage?: boolean; errors?: ArrayError; isFoldable?: boolean; }) { return (
{!!explanation && (
{explanation}
)} {showHelpMessage && (
Environment changes will not take effect until redeployment occurs manually or via webhook.
)}
); }