<commit_before>// Libraries
import React, {PureComponent} from 'react'

// Components
import {ErrorHandling} from 'src/shared/decorators/errors'
import CardSelectCard from 'src/clockface/components/card_select/CardSelectCard'
import {GridSizer} from 'src/clockface'
import {IconCSV, IconLineProtocol, IconStreaming} from 'src/onboarding/graphics'

// Types
import {DataLoaderType} from 'src/types/v2/dataLoaders'

export interface Props {
  onSelectDataLoaderType: (type: string) => void
  type: DataLoaderType
}

const DATA_SOURCES_OPTIONS = [
  DataLoaderType.CSV,
  DataLoaderType.Streaming,
  DataLoaderType.LineProtocol,
]

const DATA_SOURCES_LOGOS = {
  [DataLoaderType.CSV]: IconCSV,
  [DataLoaderType.Streaming]: IconStreaming,
  [DataLoaderType.LineProtocol]: IconLineProtocol,
}

@ErrorHandling
class TypeSelector extends PureComponent<Props> {
  public render() {
    return (
      <div className="wizard-step--grid-container">
        <GridSizer cellWidth={200}><commit_msg>remove CSV option (#2052)<commit_after>// Libraries
import React, {PureComponent} from 'react'

// Components
import {ErrorHandling} from 'src/shared/decorators/errors'
import CardSelectCard from 'src/clockface/components/card_select/CardSelectCard'
import {GridSizer} from 'src/clockface'
import {IconCSV, IconLineProtocol, IconStreaming} from 'src/onboarding/graphics'

// Types
import {DataLoaderType} from 'src/types/v2/dataLoaders'

export interface Props {
  onSelectDataLoaderType: (type: string) => void
  type: DataLoaderType
}

const DATA_SOURCES_OPTIONS = [
  DataLoaderType.Streaming,
  DataLoaderType.LineProtocol,
]

const DATA_SOURCES_LOGOS = {
  [DataLoaderType.CSV]: IconCSV,
  [DataLoaderType.Streaming]: IconStreaming,
  [DataLoaderType.LineProtocol]: IconLineProtocol,
}

@ErrorHandling
class TypeSelector extends PureComponent<Props> {
  public render() {
    return (
      <div className="wizard-step--grid-container">
        <GridSizer cellWidth={200}>
{'fraction_non_alphanumeric': 0.10743380855397149, 'fraction_numerical': 0.006109979633401222, 'mean_word_length': 5.593959731543624, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '1562311', 'n_tokens_mistral': 642, 'n_tokens_neox': 620, 'n_words': 131}