| 1 | import ToggleSwitch from "../../../components/gui/Switch"; |
| 2 | interface ContinueFeaturesMenuProps { |
| 3 | enableStaticContextualization: boolean; |
| 4 | handleEnableStaticContextualizationToggle: (value: boolean) => void; |
| 5 | } |
| 6 | |
| 7 | export function ContinueFeaturesMenu({ |
| 8 | enableStaticContextualization, |
| 9 | handleEnableStaticContextualizationToggle, |
| 10 | }: ContinueFeaturesMenuProps) { |
| 11 | return ( |
| 12 | <div className="flex w-full flex-col gap-y-4"> |
| 13 | <div className="my-2 text-center text-xs font-medium text-slate-400"> |
| 14 | 馃毀 INTERNAL SETTINGS 馃毀 |
| 15 | </div> |
| 16 | <div className="flex w-full flex-col gap-y-4"> |
| 17 | <ToggleSwitch |
| 18 | isToggled={enableStaticContextualization} |
| 19 | onToggle={() => |
| 20 | handleEnableStaticContextualizationToggle( |
| 21 | !enableStaticContextualization, |
| 22 | ) |
| 23 | } |
| 24 | text="Use Static Contextualization" |
| 25 | /> |
| 26 | </div> |
| 27 | </div> |
| 28 | ); |
| 29 | } |