diff --git a/src/app/Products/barrels/page.tsx b/src/app/Products/barrels/page.tsx
index 2d2228a..626d57d 100644
--- a/src/app/Products/barrels/page.tsx
+++ b/src/app/Products/barrels/page.tsx
@@ -3,6 +3,7 @@ import { psa } from '@db/schema/Psa';
import partTypes from 'src/data/parts_cats.json';
import styles from '../styles.module.css';
import PageHero from "@src/components/PageHero";
+import ProductTable from "@src/components/ProductTable";
export default async function BarrelsPage() {
const psa = await getProductType('Barrels');
@@ -11,29 +12,7 @@ export default async function BarrelsPage() {
-
-
-
- | Component |
- Manufacturer |
- Model # |
- Price |
-
-
-
- {psa.map((psa) => (
-
- | {psa.category} |
- {psa.brandName} |
- {psa.modelnumber} |
-
- ${Number(psa.salePrice).toFixed(2)}
-
- |
-
- ))}
-
-
+
);
diff --git a/src/app/Products/muzzle-devices/page.tsx b/src/app/Products/muzzle-devices/page.tsx
index 80f0943..7b1700d 100644
--- a/src/app/Products/muzzle-devices/page.tsx
+++ b/src/app/Products/muzzle-devices/page.tsx
@@ -3,6 +3,7 @@ import { psa } from '@db/schema/Psa';
import partTypes from 'src/data/parts_cats.json';
import styles from '../styles.module.css';
import PageHero from "@src/components/PageHero";
+import ProductTable from "@src/components/ProductTable";
export default async function MuzzleDevices() {
const psa = await getMuzzleDevices();
@@ -11,29 +12,7 @@ export default async function MuzzleDevices() {
-
-
-
- | Component |
- Manufacturer |
- Model # |
- Price |
-
-
-
- {psa.map((psa) => (
-
- | {psa.category} |
- {psa.brandName} |
- {psa.modelnumber} |
-
- ${Number(psa.salePrice).toFixed(2)}
-
- |
-
- ))}
-
-
+
);
diff --git a/src/components/ProductTable/index.tsx b/src/components/ProductTable/index.tsx
new file mode 100644
index 0000000..b9d8ece
--- /dev/null
+++ b/src/components/ProductTable/index.tsx
@@ -0,0 +1,29 @@
+
+export default async function ProductTable(props:any) {
+
+ return (
+
+
+
+ | Component |
+ Manufacturer |
+ Model # |
+ Price |
+
+
+
+ {props.data.map((item:any) => (
+
+ | {item.category} |
+ {item.brandName} |
+ {item.modelnumber} |
+
+ ${Number(item.salePrice).toFixed(2)}
+
+ |
+
+ ))}
+
+
+ );
+}
\ No newline at end of file