insomnia/packages/insomnia-app/app/ui/components/unit-test-editable.tsx

13 lines
315 B
TypeScript

import React, { FunctionComponent } from 'react';
import { Editable } from './base/editable';
interface Props {
onSubmit: () => void;
value: string;
}
export const UnitTestEditable: FunctionComponent<Props> = ({ onSubmit, value }) => {
return <Editable singleClick onSubmit={onSubmit} value={value} />;
};