mirror of
https://github.com/lordmathis/llamactl.git
synced 2025-12-22 09:04:22 +00:00
27 lines
601 B
TypeScript
27 lines
601 B
TypeScript
import React from 'react'
|
|
import KeyValueInput from './KeyValueInput'
|
|
|
|
interface EnvVarsInputProps {
|
|
id: string
|
|
label: string
|
|
value: Record<string, string> | undefined
|
|
onChange: (value: Record<string, string> | undefined) => void
|
|
description?: string
|
|
disabled?: boolean
|
|
className?: string
|
|
}
|
|
|
|
const EnvVarsInput: React.FC<EnvVarsInputProps> = (props) => {
|
|
return (
|
|
<KeyValueInput
|
|
{...props}
|
|
keyPlaceholder="Variable name"
|
|
valuePlaceholder="Variable value"
|
|
addButtonText="Add Variable"
|
|
allowEmptyValues={false}
|
|
/>
|
|
)
|
|
}
|
|
|
|
export default EnvVarsInput
|