mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-15 16:23:25 +01:00
20 lines
491 B
TypeScript
20 lines
491 B
TypeScript
import type { HttpRequest } from '../lib/models';
|
|
import { PairEditor } from './core/PairEditor';
|
|
|
|
type Props = {
|
|
forceUpdateKey: string;
|
|
parameters: { name: string; value: string }[];
|
|
onChange: (headers: HttpRequest['headers']) => void;
|
|
};
|
|
|
|
export function ParametersEditor({ parameters, forceUpdateKey, onChange }: Props) {
|
|
return (
|
|
<PairEditor
|
|
forceUpdateKey={forceUpdateKey}
|
|
pairs={parameters}
|
|
onChange={onChange}
|
|
namePlaceholder="name"
|
|
/>
|
|
);
|
|
}
|