import React from 'react'
import { formatIDR } from '../utils/currency'

export default function StrikeThroughPrice({
  price,
  label,
}: {
  price?: number | string
  label?: string
}) {
  return (
    <span className="strike-through-price">
      {formatIDR(Number(price ?? 0))} {label}
    </span>
  )
}
