25 lines
705 B
TypeScript
25 lines
705 B
TypeScript
import { Settings } from '@/react/portainer/settings/types';
|
|
|
|
import { isBE } from '../../feature-flags/feature-flags.service';
|
|
|
|
import { EdgeComputeSettings } from './EdgeComputeSettings';
|
|
import { DeploymentSyncOptions } from './DeploymentSyncOptions/DeploymentSyncOptions';
|
|
import { AutomaticEdgeEnvCreation } from './AutomaticEdgeEnvCreation';
|
|
|
|
interface Props {
|
|
settings: Settings;
|
|
onSubmit(values: Settings): void;
|
|
}
|
|
|
|
export function EdgeComputeSettingsView({ settings, onSubmit }: Props) {
|
|
return (
|
|
<div className="row">
|
|
<EdgeComputeSettings settings={settings} onSubmit={onSubmit} />
|
|
|
|
<DeploymentSyncOptions />
|
|
|
|
{isBE && <AutomaticEdgeEnvCreation />}
|
|
</div>
|
|
);
|
|
}
|