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 (
{pack}
{reference}
{chapterTitle}
{title}
{verse}