/* eslint-disable react/no-array-index-key */ import React from 'react'; import { Text } from 'react-native'; import PropTypes from 'prop-types'; import CodeLine from './CodeLine'; import styles from '../styles'; import { themes } from '../../../constants/colors'; import { useTheme } from '../../../theme'; const Code = ({ value, style }) => { const { theme } = useTheme(); return ( {value.map((block, index) => { switch (block.type) { case 'CODE_LINE': return ; default: return null; } })} ); }; Code.propTypes = { value: PropTypes.array, style: PropTypes.object }; export default Code;