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