Skip to content

Instantly share code, notes, and snippets.

@PaquitoSoft
Created December 10, 2020 12:15
Show Gist options
  • Save PaquitoSoft/5748b44fc50f6f45f70cb7f21832b3ff to your computer and use it in GitHub Desktop.
Save PaquitoSoft/5748b44fc50f6f45f70cb7f21832b3ff to your computer and use it in GitHub Desktop.
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