'use client' import type { FC } from 'react' import React, { useCallback } from 'react' import { useTranslation } from 'react-i18next' import OptionCard from '@/app/components/workflow/nodes/_base/components/option-card' import { Resolution } from '@/types/app' const i18nPrefix = 'workflow.nodes.llm' type Props = { value: Resolution onChange: (value: Resolution) => void } const ResolutionPicker: FC = ({ value, onChange, }) => { const { t } = useTranslation() const handleOnChange = useCallback((value: Resolution) => { return () => { onChange(value) } }, [onChange]) return (
{t(`${i18nPrefix}.resolution.name`)}
) } export default React.memo(ResolutionPicker)