File tree Expand file tree Collapse file tree 2 files changed +5
-26
lines changed
public/images/network-maturity Expand file tree Collapse file tree 2 files changed +5
-26
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- import { useState } from "react "
1
+ import ExpandableCard from "./ExpandableCard "
2
2
3
3
import DevelopingImage from "@/public/images/network-maturity/developing.svg"
4
4
import EmergingImage from "@/public/images/network-maturity/emerging.svg"
5
5
import MaturingImage from "@/public/images/network-maturity/maturing.svg"
6
- import Button from "@/public/images/network-maturity/network-maturity-icon.svg"
7
6
import RobustImage from "@/public/images/network-maturity/robust.svg"
8
7
9
8
const NetworkMaturity = ( ) => {
10
- const [ isExpanded , setIsExpanded ] = useState ( false )
11
-
12
9
return (
13
- < div className = "network-maturity-card mx-9 mt-10 rounded-lg border bg-white p-6" >
14
- { /* Header with toggle button */ }
15
- < div
16
- className = "flex cursor-pointer items-center justify-between"
17
- onClick = { ( ) => setIsExpanded ( ! isExpanded ) }
18
- >
19
- < h2 className = "text-xl font-bold" > Network maturity explained</ h2 >
20
- < button aria-label = "Toggle section" >
21
- < Button
22
- className = { `transform transition-transform ${ isExpanded ? "" : "rotate-180" } ` }
23
- > </ Button >
24
- </ button >
25
- </ div >
26
-
27
- { /* Collapsible Content */ }
28
- { isExpanded && (
29
- < div className = "mt-4 border-t py-6" >
10
+ < div className = "mx-9 mt-10" >
11
+ < ExpandableCard title = "Network maturity explained" >
12
+ < div >
30
13
< div className = "space-y-4" >
31
14
{ " " }
32
15
< p >
@@ -118,7 +101,7 @@ const NetworkMaturity = () => {
118
101
</ tbody >
119
102
</ table >
120
103
</ div >
121
- ) }
104
+ </ ExpandableCard >
122
105
</ div >
123
106
)
124
107
}
You can’t perform that action at this time.
0 commit comments