import { getStocks } from "@queries/PSA";
import partTypes from 'src/data/parts_cats.json';
import styles from '../styles.module.css';
import PageHero from "@components/PageHero";
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>
  );
}