MCPcopy Create free account
hub / github.com/aetherstate/GODMOD3.AI / handleDatasetToggle

Function handleDatasetToggle

SettingsModal.tsx:1181–1188  ·  view source on GitHub ↗
(enabled: boolean)

Source from the content-addressed store, hash-verified

1179 const [showDatasetConsent, setShowDatasetConsent] = useState(false)
1180
1181 function handleDatasetToggle(enabled: boolean) {
1182 if (enabled) {
1183 // Show consent modal before enabling
1184 setShowDatasetConsent(true)
1185 } else {
1186 setDatasetGenerationEnabled(false)
1187 }
1188 }
1189
1190 function confirmDatasetConsent() {
1191 setDatasetGenerationEnabled(true)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected