index.tsx 419 Bytes
Newer Older
zhanghaozhe committed
1 2
import React from "react"
import "./index.scss"
zhanghaozhe committed
3 4

interface Props {
zhanghaozhe committed
5 6
  current: number | string
  origin: number | string
zhanghaozhe committed
7 8
}

zhanghaozhe committed
9 10 11 12 13 14 15 16
const Prices: React.FC<Props> = ({ current, origin }) => {
  return (
    <div className="prices">
      <span className="current">
        <span className={"sign"}>¥</span>
        {current}
      </span>
      <span className="origin">¥{origin}</span>
zhanghaozhe committed
17
    </div>
zhanghaozhe committed
18
  )
zhanghaozhe committed
19 20
}

zhanghaozhe committed
21
export default Prices