File size: 634 Bytes
63c1afb
 
 
 
 
 
 
 
dda6509
 
63c1afb
dda6509
63c1afb
dda6509
63c1afb
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import React from 'react';
import {BsChevronDown, BsChevronUp} from 'react-icons/bs'

export default function Section({ title, section, handleSection }) {

  return (
    <>
    <div className="mt-1">
    <div onClick={() => handleSection()} className="cursor-pointer flex justify-between inline-block pt-6 borders font-medium text-gray-700">
    <div className=""> {title} </div>
    {section ?
    <BsChevronUp className="ml-2 " />
    :
    <BsChevronDown className="ml-2" />
    }
    </div>
    </div>
    <style>{`
    .borders {
      border-bottom: solid 1px;
      border-color: #e2e8f0;
      }
    `}</style>
    </>
  );
}