[Update] UI: Add Plamo, OpenAI and Gemini authentication key components and integrate them into the Translation section.

This commit is contained in:
Sakamoto Shiina
2025-11-14 09:40:25 +09:00
parent 3105df3486
commit 11c16fadbd
4 changed files with 324 additions and 1 deletions

View File

@@ -5,6 +5,13 @@ export const arrayToObject = (array) => {
}, {});
};
export const arrayToIdLabel = (array) => {
return array.map((element) => ({
id: element,
label: element,
}));
};
export const chunkArray = (array, size) => {
const chunked = [];
for (let i = 0; i < array.length; i += size) {