import React from 'react' import cn from '@/utils/classnames' import type { DataSourceNodeType } from '@/app/components/workflow/nodes/data-source/types' import DatasourceIcon from './datasource-icon' import { useDatasourceIcon } from './hooks' type OptionCardProps = { label: string selected: boolean nodeData: DataSourceNodeType onClick?: () => void } const OptionCard = ({ label, selected, nodeData, onClick, }: OptionCardProps) => { const iconUrl = useDatasourceIcon(nodeData) as string return (
{label}
) } export default React.memo(OptionCard)