import styled from "@emotion/styled"; import React, { useState } from "react"; import { DARK_SECONDARY_ONE, DARK_SECONDARY_TWO } from "../../../shared/colors"; import { PlatformProps } from "../../../shared/types"; import withPlatform from "../../platform/withPlatform"; type Props = { style?: any; } & PlatformProps; function ShareLink(props: Props) { const [isHovering, setIsHovering] = useState(false); return ( setIsHovering(true)} onMouseLeave={() => setIsHovering(false)} > ); } export default withPlatform(ShareLink); const Svg = styled.svg` fill: none; `; const Path = styled.path<{ active: boolean }>` stroke: ${(props) => props.active ? DARK_SECONDARY_TWO : DARK_SECONDARY_ONE}; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.16s ease-in-out; `;