import React from "react"; import styled from "styled-components"; import LogoRound from "../Svg/Icons/LogoRound"; import Text from "../Text/Text"; import Skeleton from "../Skeleton/Skeleton"; import { Colors } from "../../theme"; export interface Props { color?: keyof Colors; wayaPriceUsd?: number; showSkeleton?: boolean; chainId: number; } const PriceLink = styled.a` display: flex; align-items: center; svg { transition: transform 0.3s; } :hover { svg { transform: scale(1.2); } } `; const WayaPrice: React.FC> = ({ wayaPriceUsd, color = "textSubtle", showSkeleton = true, chainId, }) => { return wayaPriceUsd ? ( {`$${wayaPriceUsd.toFixed(3)}`} ) : showSkeleton ? ( ) : null; }; export default React.memo(WayaPrice);