Add better choosing menu for gary API v2

This commit is contained in:
kmmiio99o 2025-10-01 15:54:07 +02:00
parent b0c6ec5bf1
commit 9a0a6dc224

View file

@ -91,31 +91,34 @@ export default function Settings() {
}; };
const showGarySourceSelection = () => { const showGarySourceSelection = () => {
alerts.showInputAlert({ alerts.showConfirmationAlert({
title: "Choose Gary Image Source", title: "Choose Gary Image Source",
content: "Select an image source:", content: "Select an image source for the Gary command:",
placeholder: "", confirmText: "Gary API",
confirmText: "Cancel", cancelText: "Other Options",
confirmColor: "grey", confirmColor: "brand",
onConfirm: () => {}, onConfirm: () => handleGarySourceChange("gary"),
extraOptions: [ onCancel: () => {
{ alerts.showConfirmationAlert({
text: "Gary API", title: "Choose Image Source",
onPress: () => handleGarySourceChange("gary"), content: "Select from remaining options:",
}, confirmText: "Cat API",
{ cancelText: "More Options",
text: "Cat API", confirmColor: "brand",
onPress: () => handleGarySourceChange("catapi"), onConfirm: () => handleGarySourceChange("catapi"),
}, onCancel: () => {
{ alerts.showConfirmationAlert({
text: "Minker API", title: "Choose Image Source",
onPress: () => handleGarySourceChange("minker"), content: "Select from final options:",
}, confirmText: "Minker API",
{ cancelText: "Goober API",
text: "Goober API", confirmColor: "brand",
onPress: () => handleGarySourceChange("goober"), onConfirm: () => handleGarySourceChange("minker"),
}, onCancel: () => handleGarySourceChange("goober"),
], });
},
});
},
}); });
}; };