mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-19 07:26:59 +01:00
21 lines
534 B
TypeScript
21 lines
534 B
TypeScript
import type { HttpRequest } from '../lib/models';
|
|
import { PairEditor } from './core/PairEditor';
|
|
|
|
type Props = {
|
|
forceUpdateKey: string;
|
|
urlParameters: HttpRequest['headers'];
|
|
onChange: (headers: HttpRequest['urlParameters']) => void;
|
|
};
|
|
|
|
export function UrlParametersEditor({ urlParameters, forceUpdateKey, onChange }: Props) {
|
|
return (
|
|
<PairEditor
|
|
valueAutocompleteVariables
|
|
nameAutocompleteVariables
|
|
pairs={urlParameters}
|
|
onChange={onChange}
|
|
forceUpdateKey={forceUpdateKey}
|
|
/>
|
|
);
|
|
}
|