1- import React from ' react'
2- import { DashedAnimation } from ' ../animations/animatedTriangle'
3- import { IconBox } from ' ../icon-box'
4- import { useProgressWithInView } from ' @/model/interactions/use-progress-in-view'
1+ import React from " react" ;
2+ import { DashedAnimation } from " ../animations/animatedTriangle" ;
3+ import { IconBox } from " ../icon-box" ;
4+ import { useProgressWithInView } from " @/model/interactions/use-progress-in-view" ;
55
6- type Props = { }
6+ type Props = { } ;
77
88export default function BenefitsTriangle ( { } : Props ) {
9- const {
10- isActive,
11- clickOnIcon,
12- currentStatus,
13- progressLeft,
14-
15- } = useProgressWithInView ( ) ;
9+ const { isActive, currentStatus, progressLeft, } =
10+ useProgressWithInView ( ) ;
1611 return (
1712 < div className = "md:w-1/2 w-full md:h-full pt-12 relative flex items-center justify-center" >
18- < div className = "flex-col gap-6 md:gap-0 items-center justify-center flex max-w-sm relative w-full" >
19- < DashedAnimation active = { currentStatus . current } />
20- < div className = "flex items-center h-fit w-full justify-center md:px-16 md:justify-start" >
21- < IconBox
22- text = "Business"
23- icon = "/images/Business_Icon.svg "
24- isActive = { isActive ( 0 ) }
25- onClick = { clickOnIcon ( 0 , 1 ) }
26- progress = { progressLeft }
27- />
28- </ div >
13+ < div className = "flex-col gap-6 md:gap-0 items-center justify-center flex max-w-sm relative w-full" >
14+ < DashedAnimation active = { currentStatus . current } />
15+ < div className = "flex items-center h-fit w-full justify-center md:px-16 md:justify-start cursor-not-allowed " >
16+ < IconBox
17+ text = "Business"
18+ className = "cursor-default "
19+ icon = "/images/Business_Icon.svg"
20+ isActive = { isActive ( 0 ) }
21+ progress = { progressLeft }
22+ />
23+ </ div >
2924
30- < div className = "flex items-center h-fit w-full justify-between px-12 md:justify-end" >
31- < IconBox
32- text = "Salespeople"
33- icon = "/images/SA_Sales_Icon.svg"
34- isActive = { isActive ( 1 ) }
35- onClick = { clickOnIcon ( 1 , 168 ) }
36- className = "order-2 md:order-1"
37- progress = { progressLeft }
38- />
25+ < div className = "flex items-center h-fit w-full justify-between px-12 md:justify-end" >
26+ < IconBox
27+ text = "Salespeople"
28+ icon = "/images/SA_Sales_Icon.svg"
29+ isActive = { isActive ( 1 ) }
30+ className = "order-2 md:order-1 cursor-default"
31+ progress = { progressLeft }
32+ />
3933
40- < IconBox
41- text = "Customer"
42- icon = "/images/SA_Customer_Icon.svg"
43- className = "md:hidden "
44- isActive = { isActive ( 2 ) }
45- onClick = { clickOnIcon ( 2 , 373 ) }
46- progress = { progressLeft }
47- />
48- </ div >
34+ < IconBox
35+ text = "Customer"
36+ icon = "/images/SA_Customer_Icon.svg"
37+ className = "md:hidden cursor-default"
38+ isActive = { isActive ( 2 ) }
39+ progress = { progressLeft }
40+ />
41+ </ div >
4942
50- < div className = "w-full flex items-center " >
51- < IconBox
52- text = "Customer"
53- icon = "/images/SA_Customer_Icon.svg"
54- className = "hidden md:flex md:flex-col"
55- isActive = { isActive ( 2 ) }
56- onClick = { clickOnIcon ( 2 , 373 ) }
57- progress = { progressLeft }
58- / >
43+ < div className = "w-full flex items-center " >
44+ < IconBox
45+ text = "Customer"
46+ icon = "/images/SA_Customer_Icon.svg"
47+ className = "hidden md:flex md:flex-col cursor-default "
48+ isActive = { isActive ( 2 ) }
49+ progress = { progressLeft }
50+ />
51+ </ div >
5952 </ div >
6053 </ div >
61- </ div >
62- )
63- }
54+ ) ;
55+ }
0 commit comments