<commit_before>import { Button, EmptyState, EmptyStateBody, Title } from '@patternfly/react-core';
import * as React from 'react';
import { OpenshiftClusterLoader } from '../loaders/openshiftcluster-loader';
import { DeploymentFormValue } from './deployment-form';
import { OverviewComplete } from '../core/hub-n-spoke/overview-complete';

interface DeploymentFormProps {
  value: DeploymentFormValue;
  onClick: () => void;
}

export function DeploymentFormOverview(props: DeploymentFormProps) {

  if (!props.value.cluster.clusterId) {
    return (
      <EmptyState>
        <Title size="lg">You need to configure the OpenShift deployment</Title>
        <EmptyStateBody>
          You are going to choose where your application will be build, deployed and served.
        </EmptyStateBody>
        <Button variant="primary" onClick={props.onClick}>Configure OpenShift Deployment</Button>
      </EmptyState>
    );
  }
  return (
    <OpenshiftClusterLoader clusterId={props.value.cluster.clusterId}>
      {result => (
        <OverviewComplete title="OpenShift Deployment is configured">
          You application will be deployed on the '{result!.name}' OpenShift cluster.
        </OverviewComplete>
      )}
    </OpenshiftClusterLoader>
  );
}
<commit_msg>chore: fixed minor grammatical error<commit_after>import { Button, EmptyState, EmptyStateBody, Title } from '@patternfly/react-core';
import * as React from 'react';
import { OpenshiftClusterLoader } from '../loaders/openshiftcluster-loader';
import { DeploymentFormValue } from './deployment-form';
import { OverviewComplete } from '../core/hub-n-spoke/overview-complete';

interface DeploymentFormProps {
  value: DeploymentFormValue;
  onClick: () => void;
}

export function DeploymentFormOverview(props: DeploymentFormProps) {

  if (!props.value.cluster.clusterId) {
    return (
      <EmptyState>
        <Title size="lg">You need to configure the OpenShift deployment</Title>
        <EmptyStateBody>
          You are going to choose where your application will be built, deployed and served.
        </EmptyStateBody>
        <Button variant="primary" onClick={props.onClick}>Configure OpenShift Deployment</Button>
      </EmptyState>
    );
  }
  return (
    <OpenshiftClusterLoader clusterId={props.value.cluster.clusterId}>
      {result => (
        <OverviewComplete title="OpenShift Deployment is configured">
          You application will be deployed to the '{result!.name}' OpenShift cluster.
        </OverviewComplete>
      )}
    </OpenshiftClusterLoader>
  );
}

{'fraction_non_alphanumeric': 0.11154598825831702, 'fraction_numerical': 0.0, 'mean_word_length': 3.689908256880734, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6720609', 'n_tokens_mistral': 709, 'n_tokens_neox': 681, 'n_words': 182}