Last active
August 14, 2020 02:04
-
-
Save naush/84c5bd8e179e355597c90c4139593dc3 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
const Daruma = () => { | |
const { state, } = React.useContext(DarumaContext); | |
switch (state) { | |
case WishState.PENDING: | |
return <DarumaPending />; | |
case WishState.STARTED: | |
return <DarumaStarted />; | |
default: | |
return <DarumaFulfilled />; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment