|
1 | 1 | import React, { useState, useEffect } from 'react'; |
2 | 2 | import { Button } from '@ohif/ui-next'; |
3 | | -import Talas from './Talas'; |
| 3 | +import Talas from './View/Talas'; |
| 4 | +import Main from './View/Main'; |
4 | 5 |
|
5 | 6 | const AutometricsPanel = ({ commandsManager, servicesManager }) => { |
6 | 7 | const [currentView, setCurrentView] = useState('autometrics'); // 'autometrics' or 'talas' |
@@ -50,73 +51,7 @@ const AutometricsPanel = ({ commandsManager, servicesManager }) => { |
50 | 51 |
|
51 | 52 | // Default Autometrics view |
52 | 53 | return ( |
53 | | - <div className="flex flex-col space-y-6 p-4"> |
54 | | - <div className="mb-4 text-lg font-semibold text-white">Autometrics</div> |
55 | | - |
56 | | - {/* Angular Measurements Group */} |
57 | | - <div className="space-y-3"> |
58 | | - <div className="border-b border-gray-600 pb-1 text-sm font-medium text-gray-300"> |
59 | | - Angular Measurements |
60 | | - </div> |
61 | | - <div className="flex flex-col space-y-2 pl-2"> |
62 | | - <Button |
63 | | - variant="default" |
64 | | - className="w-full justify-start text-sm" |
65 | | - onClick={() => handleButtonClick('M1M2')} |
66 | | - > |
67 | | - M1M2 |
68 | | - </Button> |
69 | | - |
70 | | - <Button |
71 | | - variant="default" |
72 | | - className="w-full justify-start text-sm" |
73 | | - onClick={() => handleButtonClick('TMT-DOR')} |
74 | | - > |
75 | | - TMT-DOR |
76 | | - </Button> |
77 | | - |
78 | | - <Button |
79 | | - variant="default" |
80 | | - className="w-full justify-start text-sm" |
81 | | - onClick={() => handleButtonClick('TMT-LAT')} |
82 | | - > |
83 | | - TMT-LAT |
84 | | - </Button> |
85 | | - |
86 | | - <Button |
87 | | - variant="default" |
88 | | - className="w-full justify-start text-sm" |
89 | | - onClick={() => handleButtonClick('CP')} |
90 | | - > |
91 | | - CP |
92 | | - </Button> |
93 | | - |
94 | | - <Button |
95 | | - variant="default" |
96 | | - className="w-full justify-start text-sm" |
97 | | - onClick={() => handleButtonClick('HA')} |
98 | | - > |
99 | | - HA |
100 | | - </Button> |
101 | | - </div> |
102 | | - </div> |
103 | | - |
104 | | - {/* Foot Ankle Offset Group */} |
105 | | - <div className="space-y-3"> |
106 | | - <div className="border-b border-gray-600 pb-1 text-sm font-medium text-gray-300"> |
107 | | - Foot Ankle Offset |
108 | | - </div> |
109 | | - <div className="flex flex-col space-y-2 pl-2"> |
110 | | - <Button |
111 | | - variant="default" |
112 | | - className="w-full justify-start text-sm" |
113 | | - onClick={() => handleButtonClick('TALAS')} |
114 | | - > |
115 | | - TALAS |
116 | | - </Button> |
117 | | - </div> |
118 | | - </div> |
119 | | - </div> |
| 54 | + <Main handleButtonClick={handleButtonClick} /> |
120 | 55 | ); |
121 | 56 | }; |
122 | 57 |
|
|
0 commit comments