hunk.code_window: export function kubeEnvVarValidationSchema(): SchemaOf<EnvVar[]> {
     return array(
       object({
         name: string()
           .required('Name is required')
           .matches(
             /^[a-zA-Z][a-zA-Z0-9_.-]*$/,
  
hunk.labels: keep keep keep keep replace keep keep
hunk.after_edit:         .required('Environment variable name is required')
  
hunk.file_path: app/react/kubernetes/applications/ApplicationForm/kubeEnvVarValidationSchema.ts
hunk.type: replace
file: import clsx from 'clsx';
  import { ComponentProps } from 'react';
  
  import { Button } from './buttons';
  import { Link } from './Link';
  
  export function LinkButton({
    to,
    params,
    disabled,
    className,
    children,
    title = '',
    ...props
  }: ComponentProps<typeof Button> & ComponentProps<typeof Link>) {
    return (
      <Button
        title={title}
        // eslint-disable-next-line react/jsx-props-no-spreading
        {...props}
        className={clsx(className, 'no-link !m-0')}
        disabled={disabled}
        as={disabled ? 'span' : Link}
        props={{
          to,
          params,
        }}
      >
        {children}
      </Button>
    );
  }
  