import React from 'react'; import { CopyButton } from 'UI'; import Highlight from 'react-highlight'; const inputModeOptions = [ { label: 'Record all inputs', value: 'plain' }, { label: 'Obscure all inputs', value: 'hidden' }, { label: 'Ignore all inputs', value: 'obscured' }, ]; const inputModeOptionsMap: any = {} inputModeOptions.forEach((o: any, i: any) => inputModeOptionsMap[o.value] = i) interface Props { host: string; projectKey: string; ingestPoint: string; defaultInputMode: any; obscureTextNumbers: boolean; obscureTextEmails: boolean; } function CodeSnippet(props: Props) { const { host, projectKey, ingestPoint, defaultInputMode, obscureTextNumbers, obscureTextEmails } = props; const codeSnippet = ` `; return (