import type { StepType } from './stepsDescription';
import { DocumentTypeName } from './documentTypes';

export const checkIsNeedRotateCard = (stepType: StepType, documentTypeName: '' | DocumentTypeName): boolean => {
  if (documentTypeName === 'Passport') {
    return false;
  }
  return stepType !== 'face' && stepType !== 'front' && stepType !== 'barcode';
};
