File size: 618 Bytes
010c33f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import React from 'react'

export default function SectionBlock({
  step,
  title,
  subtitle,
  aside,
  children,
}) {
  return (
    <section className="workflow-section" style={{ '--section-order': Number(step) || 1 }}>
      <header className="section-head">
        <span className="section-index">{step}</span>
        <div className="section-title-wrap">
          <h3>{title}</h3>
          {subtitle ? <p>{subtitle}</p> : null}
        </div>
        {aside ? <div className="section-head-aside">{aside}</div> : null}
      </header>
      <div className="section-body">{children}</div>
    </section>
  )
}