import { useState } from "react"; import "./VersePrinter.css"; import { StringDiff } from "react-string-diff"; import { containsKorean, jamoSubstringMatch } from './utils'; const STATE = { INCORRECT: 0, PARTIAL: 1, CORRECT: 2, }; // function to render and handle logic of each of the cells const VersePrinter = ({ element: { pack, title, chapterTitle, reference, verse } , t, index}) => { // useful use of destructuring here return (

Verse {index}

{/* This shows the difference between given and input answers*/}

Pack:

{pack}

Reference:

{reference}

{chapterTitle && (

Chapter Title:

{chapterTitle}

)}

Title:

{title}

Verse:

{verse}

); } export default VersePrinter