import React from 'react'
import {
LightningBoltIcon,
PaperPlaneIcon,
Pencil2Icon,
StackIcon,
TokensIcon,
// FileText,
// CheckSquare,
} from '@radix-ui/react-icons'
interface NavProps {
currentStepIndex: number
goTo: (step: number) => void
}
const steps = [
{
title: 'Governance',
icon: ,
description: 'Select the Governance Contract',
},
{
title: 'Proposal',
icon: ,
description: 'Describe your proposal',
},
{
title: 'Contracts',
icon: ,
description: 'Function calls to submit',
},
{
title: 'Simulation',
icon: ,
description: 'Simulate execution on the blockchain',
},
{
title: 'Confirmation',
icon: ,
description: 'Prepare and submit the proposal',
},
]
const SideBar: React.FC = ({ currentStepIndex, goTo }: NavProps) => {
return (
{steps.map((step, index) => (
- {
if (index <= currentStepIndex) {
goTo(index)
}
}}>
{step.icon}
{step.title}
{step.description}
))}
)
}
export default SideBar