const calcCurrent = (propsCurrent, current) => (typeof current === 'number' ? current : propsCurrent); export default { calcCurrent, };