ConnectSection.config.tsx 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import { Box, Cable, Database, KeyRound, Sparkles } from 'lucide-react'
  2. import type { ReactNode } from 'react'
  3. import type { ConnectMode } from '../ConnectSheet/Connect.types'
  4. export type ConnectAction = {
  5. id: ConnectMode | 'api_keys'
  6. heading: string
  7. subheading: string
  8. icon: ReactNode
  9. mode?: ConnectMode
  10. href?: string
  11. requiresActiveProject?: boolean
  12. }
  13. export const CONNECT_ACTIONS: ConnectAction[] = [
  14. {
  15. id: 'framework',
  16. mode: 'framework',
  17. heading: 'Framework',
  18. subheading: 'Use a client library',
  19. icon: <Box size={16} strokeWidth={1.5} />,
  20. },
  21. {
  22. id: 'direct',
  23. mode: 'direct',
  24. heading: 'Direct',
  25. subheading: 'Connection string',
  26. icon: <Database size={16} strokeWidth={1.5} />,
  27. },
  28. {
  29. id: 'orm',
  30. mode: 'orm',
  31. heading: 'ORM',
  32. subheading: 'Third-party library',
  33. icon: <Cable size={16} strokeWidth={1.5} />,
  34. },
  35. {
  36. id: 'mcp',
  37. mode: 'mcp',
  38. heading: 'MCP',
  39. subheading: 'Connect your agent',
  40. icon: <Sparkles size={16} strokeWidth={1.5} />,
  41. },
  42. {
  43. id: 'api_keys',
  44. heading: 'API Keys',
  45. subheading: 'Manage project keys',
  46. icon: <KeyRound size={16} strokeWidth={1.5} />,
  47. href: '/project/[ref]/settings/api-keys',
  48. requiresActiveProject: false,
  49. },
  50. ]