import React, { useState } from "react"; import ProductTable1 from "./ProductTable1"; function Advertisements() { const list = { 1: , }; const [type, setType] = useState(1); return (