import { getStocks } from "@queries/PSA";
import { psa } from '@schemas/schema';
import partTypes from 'src/data/parts_cats.json';
import styles from '../styles.module.css';
import PageHero from "@components/PageHero";
import ProductTable from "@components/ProductTable";
import SortTable from "@components/SortTable";

export default async function StocksPage() {
  const psa = await getStocks();

  return (
    <div>
      <PageHero title="Stocks" />
      <div className="container mx-auto">
       <SortTable data={psa}></SortTable>
      </div>
    </div>
  );
}