Add initial troubleshooting tree framework

This commit is contained in:
rtm516 committed 2024-09-26 12:48:42 +01:00
1 parent a1444aebbd
commit 5277c30f68
8 files changed
+122

No files matched your search

@@ -0,0 +1,16 @@
import { useControls } from "react-decision-tree-flow";
import StepProps from "../StepProps";
export default function Error({ data }: StepProps): JSX.Element {
const { step, tree, destinations, back } = useControls();
return (
<>
I am error
<br />
Path: {data.path.join(' -> ')}
<br />
<button onClick={() => destinations.step1({...data, path: [...data.path, step]})}>Go back to start</button>
</>
)
}