MCPcopy Create free account
hub / github.com/triggerdotdev/jsonhero-web / MoonIcon

Function MoonIcon

app/components/Icons/MoonIcon.tsx:4–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import { transition } from "../../utilities/animationConstants";
3
4export const MoonIcon = () => {
5 const variants = {
6 initial: { scale: 0.6, rotate: 90 },
7 animate: { scale: 1, rotate: 0, transition },
8 whileTap: { scale: 0.95, rotate: 15 },
9 };
10
11 return (
12 <motion.svg
13 xmlns="http://www.w3.org/2000/svg"
14 width="1em"
15 height="1em"
16 viewBox="0 0 50 50"
17 key="moon"
18 >
19 <motion.path
20 d="M 43.81 29.354 C 43.688 28.958 43.413 28.626 43.046 28.432 C 42.679 28.238 42.251 28.198 41.854 28.321 C 36.161 29.886 30.067 28.272 25.894 24.096 C 21.722 19.92 20.113 13.824 21.683 8.133 C 21.848 7.582 21.697 6.985 21.29 6.578 C 20.884 6.172 20.287 6.022 19.736 6.187 C 10.659 8.728 4.691 17.389 5.55 26.776 C 6.408 36.163 13.847 43.598 23.235 44.451 C 32.622 45.304 41.28 39.332 43.816 30.253 C 43.902 29.96 43.9 29.647 43.81 29.354 Z"
21 fill="currentColor"
22 initial="initial"
23 animate="animate"
24 whileTap="whileTap"
25 variants={variants}
26 />
27 </motion.svg>
28 );
29};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected