import * as React from "react"; import { useState } from "react"; import { Switch } from "@mui/material"; import TableView from "../../Components/ProductsPage/TableView/TableView"; import BlobView from "../../Components/ProductsPage/BlobView/BlobView"; import { ProductList } from "../../Interfaces/Interfaces"; import styles from "../../styles"; export interface props {} export default function ViewManager(props: ProductList) { const [tableView, toggleTableView] = useState(true); const [searchTerm, setSearchTerm] = useState(""); if (props.Products.length === 0) { return (
No products yet. Add one!
Search
) => { setSearchTerm(e.target.value); }} maxLength={20} />Search
) => { setSearchTerm(e.target.value); }} maxLength={20} />