import React from "react"; import styled from "styled-components"; import Text from "../../../components/Text/Text"; import HighIcon from "../../../components/Svg/Icons/HighIcon"; interface Props { cakePriceUsd?: number; } const PriceLink = styled.a` display: flex; align-items: center; margin-right: 10px; svg { transition: transform 0.3s; } :hover { svg { transform: scale(1.2); } } `; const CakePrice: React.FC = ({ cakePriceUsd }) => { return ( {cakePriceUsd ? `$${cakePriceUsd.toFixed(3)}` : "$0"} ); }; export default React.memo(CakePrice);