You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
494 B
20 lines
494 B
import React from "react"; |
|
import { connect } from "react-redux"; |
|
|
|
export const BG = ({ isDark }) => { |
|
return ( |
|
<div |
|
className={`w-screen h-screen bg-dark fixed top-0 left-0 lg:hidden ${isDark ? 'bg-dark' : 'bg-white'}`} |
|
style={{ zIndex: -1 }} |
|
></div> |
|
); |
|
}; |
|
|
|
const mapStateToProps = (state) => ({ |
|
isDark: state.publicApi.isDark, |
|
isMobile: state.publicApi.isMobile |
|
}); |
|
|
|
const mapDispatchToProps = {}; |
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(BG);
|
|
|