import { memo } from 'react' import Item from './item' import Configure from './configure' import type { DataSourceAuth } from './types' import { useRenderI18nObject } from '@/hooks/use-i18n' type CardProps = { item: DataSourceAuth } const Card = ({ item, }: CardProps) => { const renderI18nObject = useRenderI18nObject() const { icon, label, author, provider, credentials_list, } = item return (
{renderI18nObject(label)}
{author}
/
{provider}
Connected workspace
{ !!credentials_list.length && (
) } { !credentials_list.length && (
Please configure authentication
) }
) } export default memo(Card)