import React, { useState } from "react";

import { ContribComponent } from "../../../types";
import { PricesCard } from "../components/PricesCard";
import { Price } from "../types/contrib";

const PriceListPrices: ContribComponent<Price[]> = ({ data }) => {
  const [prices, setPrices] = useState(data);

  return <PricesCard prices={prices} setPrices={setPrices} />;
};

export default PriceListPrices;
