refactor edit connector page for smaller file size

This commit is contained in:
Adamsmith6300 2025-04-16 21:25:29 -07:00
parent 5c81c6037d
commit 53436370d6
4 changed files with 312 additions and 342 deletions

View file

@ -0,0 +1,11 @@
// Helper function to get connector type display name
export const getConnectorTypeDisplay = (type: string): string => {
const typeMap: Record<string, string> = {
"SERPER_API": "Serper API",
"TAVILY_API": "Tavily API",
"SLACK_CONNECTOR": "Slack",
"NOTION_CONNECTOR": "Notion",
"GITHUB_CONNECTOR": "GitHub",
};
return typeMap[type] || type;
};