Created
October 18, 2022 17:11
-
-
Save JWLangford/02dc12d2c8f71ae1cd9872cb28c22665 to your computer and use it in GitHub Desktop.
This file contains 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 styled from "styled-components"; | |
const Loader = styled.div` | |
display: ${(props) => (props.loading ? "block" : "none")}; | |
`; | |
export const Loader = (props) => { | |
const { loading } = props; | |
return ( | |
<Loader loading={loading} /> | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment