stitch-ui
Version:
24 lines (21 loc) • 604 B
JavaScript
import { servicesByType } from "./services/registry";
export function EditConfig(props) {
const editorProps = {
admin: props.client,
app: props.app,
service: props.service,
svcname: props.svcname,
onUpdate: props.onUpdate
};
return servicesByType.get(props.service.type).getConfigEditor(editorProps);
}
export function EditRules(props) {
const editorProps = {
admin: props.client,
app: props.app,
service: props.service,
svcname: props.svcname,
onUpdate: props.onUpdate
};
return servicesByType.get(props.service.type).getRulesEditor(editorProps);
}