The micro-VM for AI agents — light enough to embed on your laptop, elastic enough to power an agentic cloud.
/*
* Copyright 2025 Daytona Platforms Inc.
* Modified by BoxLite AI, 2025-2026
* SPDX-License-Identifier: AGPL-3.0
*/
import { ComponentType } from 'react'
import { Github, Link2, Mail, LucideProps } from '@/components/ui/icon'
type Props = {
provider: string
className?: string
}
export function AccountProviderIcon(props: Props) {
return getIcon(props.provider, props.className)
}
const getIcon = (provider: string, className?: string) => {
const IconComponent = ICON[provider]
if (!IconComponent) {
return <Link2 className={className} />
}
return <IconComponent className={className} />
}
const ICON: { [x: string]: ComponentType<LucideProps> } = {
github: Github,
'google-oauth2': Mail,
}