mirror of
https://github.com/vercel/commerce.git
synced 2025-05-09 03:07:50 +00:00
14 lines
352 B
TypeScript
14 lines
352 B
TypeScript
interface PriceBoxProps {
|
|
title: string;
|
|
price: number;
|
|
}
|
|
|
|
export const PriceBox = ({ title, price }: PriceBoxProps) => {
|
|
return (
|
|
<div className="flex w-full flex-col items-center gap-[5px] rounded bg-black/50 p-2">
|
|
<p>{title}</p>
|
|
<p className="text-xs text-lightText/80">£{price.toLocaleString('en-GB')}</p>
|
|
</div>
|
|
);
|
|
};
|