IntegrationLogo.tsx 579 B

12345678910111213141516171819202122232425
  1. import { cn } from 'ui'
  2. import type { IntegrationDefinition } from '@/components/interfaces/Integrations/Landing/Integrations.constants'
  3. interface IntegrationLogoProps {
  4. integration: Pick<IntegrationDefinition, 'icon'>
  5. size?: string
  6. className?: string
  7. }
  8. export const IntegrationLogo = ({
  9. integration,
  10. size = 'h-9 w-9',
  11. className,
  12. }: IntegrationLogoProps) => (
  13. <div
  14. className={cn(
  15. 'relative flex shrink-0 items-center justify-center overflow-hidden rounded-md border bg-white',
  16. size,
  17. className
  18. )}
  19. >
  20. {integration.icon()}
  21. </div>
  22. )