import { useMemo } from 'react';
import { classNames } from '../../utils/classNames';
import { descriptionCellClassnames } from '../constants';
export const useLogic = ({ icon, iconPosition = 'left' }) => {
    const classnames = useMemo(() => classNames(descriptionCellClassnames.root, {
        [descriptionCellClassnames.hasIcon]: Boolean(icon),
        [descriptionCellClassnames.iconRight]: Boolean(icon) && iconPosition === 'right',
    }), [icon, iconPosition]);
    return { classnames };
};
