import React from 'react'; import { observer } from 'mobx-react-lite'; import { Accordion, Box, FormField, Input } from '@wix/design-system'; import type { CmsFormState } from '../CmsFormState'; import { ValidationSubSection } from './ValidationSubSection'; import { classes } from './ValidationAndDefaultsSection.st.css.js'; interface Props { state: CmsFormState; } const _ValidationAndDefaultsSection = ({ state }: Props) => { const hasValidation = state.supportedValidationRules.length > 0; return (
{hasValidation && } state.setHelpText(e.target.value)} /> ), }, ]} />
); }; export const ValidationAndDefaultsSection = observer( _ValidationAndDefaultsSection, );