interface PriceProps {
// Readonly signals props must not be mutated
readonly amount: number;
readonly currency: string;
}
function Price({ amount, currency }: PriceProps) {
return <span>{amount} {currency}</span>;
}
export default Price;props are read-only inside a component