<commit_before>import PropTypes from 'prop-types'
import {form} from 'tocco-app-extensions'
import EntityBrowserApp from 'tocco-entity-browser/src/main'
import {appContext as appContextPropType} from 'tocco-util'

const UserAvailability = ({allowCreate, reportIds, searchFilters, limit, backendUrl, businessUnit, appContext}) => {
  const modifyFormDefinition = formDefinition => {
    if (!allowCreate) {
      formDefinition = form.removeCreate(formDefinition)
    }

    return formDefinition
  }
<commit_msg>feat(user-availability): use addCreate form modifier<commit_after>import PropTypes from 'prop-types'
import {form} from 'tocco-app-extensions'
import EntityBrowserApp from 'tocco-entity-browser/src/main'
import {appContext as appContextPropType} from 'tocco-util'

const UserAvailability = ({
  allowCreate,
  reportIds,
  searchFilters,
  limit,
  backendUrl,
  businessUnit,
  appContext,
  intl
}) => {
  const modifyFormDefinition = formDefinition => {
    if (allowCreate) {
      formDefinition = form.addCreate(formDefinition, intl)
    }

    return formDefinition
  }

{'fraction_non_alphanumeric': 0.09825528007346189, 'fraction_numerical': 0.0, 'mean_word_length': 4.923913043478261, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6747866', 'n_tokens_mistral': 324, 'n_tokens_neox': 315, 'n_words': 78}