Created
October 18, 2022 17:22
-
-
Save JWLangford/378531d6fb7af967bcaeb5488a046396 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"; | |
interface ILoading { | |
loading: boolean | |
} | |
const Loader = styled.div<ILoading>` | |
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