e38c58e3d7
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
14 lines
360 B
TypeScript
14 lines
360 B
TypeScript
import { aiPlatformCatalog } from "@geo/shared-types";
|
|
|
|
export interface KolPlatformOption {
|
|
label: string;
|
|
value: string;
|
|
}
|
|
|
|
export function buildKolPlatformOptions(defaultLabel: string): KolPlatformOption[] {
|
|
return [
|
|
{ label: defaultLabel, value: "通用" },
|
|
...aiPlatformCatalog.map((item) => ({ label: item.label, value: item.id })),
|
|
];
|
|
}
|