+
{countTotal}
)
}
+const ClapInfo = () => {
+ const { countTotal } = useContext(MediumClapContext)
+ return (
+
+ {wordConverter.toWords(countTotal)} claps!
+
+ )
+}
+
+MediumClap.Icon = ClapIcon
+MediumClap.Count = ClapCount
+MediumClap.Total = CountTotal
+MediumClap.Info = ClapInfo
+
/** ====================================
* 🔰USAGE
Below's how a potential user
@@ -188,8 +248,14 @@ const CountTotal = ({ countTotal }) => {
==================================== **/
const Usage = () => {
- const AnimatedMediumClap = withClapAnimation(MediumClap)
- return
+ return (
+
+
+
+
+
+
+ )
}
export default Usage
diff --git a/showcase/yarn.lock b/showcase/yarn.lock
index a3b8374..aa4c406 100644
--- a/showcase/yarn.lock
+++ b/showcase/yarn.lock
@@ -4467,6 +4467,11 @@ number-is-nan@^1.0.0:
resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d"
integrity sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=
+number-to-words@^1.2.4:
+ version "1.2.4"
+ resolved "https://registry.yarnpkg.com/number-to-words/-/number-to-words-1.2.4.tgz#e0f124de9628f8d86c4eeb89bac6c07699264501"
+ integrity sha512-/fYevVkXRcyBiZDg6yzZbm0RuaD6i0qRfn8yr+6D0KgBMOndFPxuW10qCHpzs50nN8qKuv78k8MuotZhcVX6Pw==
+
object-assign@^4.0.1, object-assign@^4.1.0, object-assign@^4.1.1:
version "4.1.1"
resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"