import { Primary , Secondary } from './BottomFixedArea' ; export const validateElement = ( primary ? , secondary ? ) => { if ( primary ) { const { displayName } = primary . type ; if ( displayName !== 'PrimaryButton' && displayName !== 'PrimaryButtonAnchor' ) { console . error ( 'SmartHR UI: the primaryButton props accepts PrimaryButton or PrimaryButtonAnchor component' ) ; } } if ( secondary ) { const { displayName } = secondary . type ; if ( displayName !== 'SecondaryButton' && displayName !== 'SecondaryButtonAnchor' ) { console . error ( 'SmartHR UI: the secondaryButton props accepts SecondaryButton or SecondaryButtonAnchor component' ) ; } } } ;