<commit_before>import React from 'react'
import { translate } from 'cozy-ui/react/helpers/i18n'

import Modal from 'cozy-ui/react/Modal'

import ReactMarkdown from 'react-markdown'

import classNames from 'classnames'
import styles from '../styles/devicesModaleRevokeView'

const devicesModaleRevokeView = ({ t, device, revokeDevice, cancelAction }) => {
  return (<Modal
    title={t('revokeDevice.title')}
    primaryText={t('revokeDevice.validate')}
    primaryType='danger'
    primaryAction={() => revokeDevice(device.id)}
    secondaryText='cancel'
    secondaryAction={() => cancelAction()}
    >
    <div className={classNames(styles['coz-modal-content'], styles['coz-modal-revoke-content'])}>
        <ReactMarkdown source={t('revokeDevice.description', {name: device.client_name})} />
        <ReactMarkdown source={t('revokeDevice.subText')} className={classNames(styles['icon'], styles['icon-arrows'])} />
    </div>
  </Modal>)
}

export default translate()(devicesModaleRevokeView)<commit_msg>fix: indentation<commit_after>import React from 'react'
import { translate } from 'cozy-ui/react/helpers/i18n'

import Modal from 'cozy-ui/react/Modal'

import ReactMarkdown from 'react-markdown'

import classNames from 'classnames'
import styles from '../styles/devicesModaleRevokeView'

const devicesModaleRevokeView = ({ t, device, revokeDevice, cancelAction }) => {
  return (<Modal
    title={t('revokeDevice.title')}
    primaryText={t('revokeDevice.validate')}
    primaryType='danger'
    primaryAction={() => revokeDevice(device.id)}
    secondaryText='cancel'
    secondaryAction={() => cancelAction()}
    >
    <div className={classNames(styles['coz-modal-content'], styles['coz-modal-revoke-content'])}>
      <ReactMarkdown source={t('revokeDevice.description', {name: device.client_name})} />
      <ReactMarkdown source={t('revokeDevice.subText')} className={classNames(styles['icon'], styles['icon-arrows'])} />
    </div>
  </Modal>)
}

export default translate()(devicesModaleRevokeView)
{'fraction_non_alphanumeric': 0.15846994535519127, 'fraction_numerical': 0.001987083954297069, 'mean_word_length': 5.455128205128205, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 21, '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': '2128644', 'n_tokens_mistral': 616, 'n_tokens_neox': 616, 'n_words': 112}