<commit_before>import React from 'react'
import { getPlatform } from 'cozy-device-helper'
import { Button } from 'cozy-ui/react'

import { nativeLinkOpen } from '../LinkManager'
export const ButtonLinkRegistration = ({
  className = '',
  label,
  size,
  subtle = false,
  type = 'submit'
}) => {
  const url = `https://manager.cozycloud.cc/cozy/create?pk_campaign=drive-${getPlatform() ||
    'browser'}`
  /* 
  if (hasSafariPlugin()) {
    const openManager = () => {
      window.SafariViewController.show(
        {
          url: url,
          transition: 'curl'
        },
        result => {
          if (result.event === 'closed') {
            window.SafariViewController.hide()
          }
        },
        error => {
          console.warn(error)
          window.SafariViewController.hide()
        }
      )
    }
 */
  /*  return (
      <Button
        onClick={openManager}
        label={label}
        size={size}
        className={className}
        subtle={subtle}
        type={type}
      />
    )
  } */

  return (
    <Button
      onClick={e => {
        console.log('clic')
        nativeLinkOpen({ e, url })
      }}
      href={url}
      label={label}
      size={size}
      className={className}
      subtle={subtle}
      type={type}
    />
  )
}
<commit_msg>refactor(onboarding): remove unused code<commit_after>import React from 'react'
import { getPlatform } from 'cozy-device-helper'
import { Button } from 'cozy-ui/react'

import { nativeLinkOpen } from '../LinkManager'
export const ButtonLinkRegistration = ({
  className = '',
  label,
  size,
  subtle = false,
  type = 'submit'
}) => {
  const url = `https://manager.cozycloud.cc/cozy/create?pk_campaign=drive-${getPlatform() ||
    'browser'}`
  return (
    <Button
      onClick={() => {
        nativeLinkOpen({ url })
      }}
      href={url}
      label={label}
      size={size}
      className={className}
      subtle={subtle}
      type={type}
    />
  )
}

{'fraction_non_alphanumeric': 0.15083798882681565, 'fraction_numerical': 0.0, 'mean_word_length': 2.141945773524721, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 13, 'https://': 2, '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': '6537369', 'n_tokens_mistral': 616, 'n_tokens_neox': 614, 'n_words': 112}