(enabled: boolean)
| 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) |
nothing calls this directly
no outgoing calls
no test coverage detected