Created
December 10, 2020 12:15
-
-
Save PaquitoSoft/5748b44fc50f6f45f70cb7f21832b3ff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import PropTypes from 'prop-types'; | |
import ResponsiveComponent from '../responsive-component/responsive-component'; | |
function AccountDropdown({ children, ...props }) { | |
return ( | |
<ResponsiveComponent | |
xs={() => import('./account-dropdown.xs')} | |
sm={() => import('./account-dropdown.sm')} | |
{...props} | |
>{children}</ResponsiveComponent> | |
) | |
} | |
AccountDropdown.propTypes = { | |
children: PropTypes.node | |
}; | |
export default AccountDropdown; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment