import React from "react";
import VendorsListContainer from "../../components/vendors-list/vendors-list.container";
import VendorsFormContainer from "../../components/vendors-form/vendors-form.container";

export default function ShopVendorPageComponent({ selectedVendorState }) {
  //TODO Figure out how to handle the refresh list when saving form
  return (
    <div>
      <VendorsListContainer selectedVendorState={selectedVendorState} />
      <VendorsFormContainer
        vendorId={selectedVendorState[0] ? selectedVendorState[0].id : null}
      />
    </div>
  );
}
