mirror of
https://github.com/MODSetter/SurfSense.git
synced 2025-09-11 06:44:40 +00:00
refactor edit connector page for smaller file size
This commit is contained in:
parent
5c81c6037d
commit
53436370d6
4 changed files with 312 additions and 342 deletions
11
surfsense_web/lib/connectors/utils.ts
Normal file
11
surfsense_web/lib/connectors/utils.ts
Normal 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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue