import { memo } from 'react' import { capitalize } from 'lodash-es' import { Env } from '@/app/components/base/icons/src/vender/line/others' import type { GlobalVariable } from '@/app/components/workflow/types' import cn from '@/utils/classnames' type Props = { payload: GlobalVariable } const Item = ({ payload, }: Props) => { return (
{payload.name}
{capitalize(payload.value_type)}
{payload.description}
) } export default memo(Item)