/* SectionMark.jsx — recurring section marker: vermilion thread + Thai script
   + English eyebrow. The Thai annotations echo the book's subject and the
   loom on the cover; lang="th" keeps them accessible. */

function SectionMark({ thai, en }) {
  return (
    <div className="section-mark">
      <span className="section-mark-thread" aria-hidden="true"></span>
      {thai ? <span className="section-mark-thai" lang="th">{thai}</span> : null}
      {en ? <span className="section-mark-en">{en}</span> : null}
    </div>
  );
}

window.SectionMark = SectionMark;
