From 31cc5ecdb693be1da04ee0a3e6dc876535d5fb4b Mon Sep 17 00:00:00 2001
From: HombreLaser <sebastian-440@live.com>
Date: Sun, 23 Apr 2023 13:12:25 -0600
Subject: Añade loader
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/routes/products/products.tsx | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

(limited to 'src/routes/products/products.tsx')

diff --git a/src/routes/products/products.tsx b/src/routes/products/products.tsx
index 6b24269..80a9794 100644
--- a/src/routes/products/products.tsx
+++ b/src/routes/products/products.tsx
@@ -1,9 +1,16 @@
+import { useLoaderData } from "react-router-dom";
 import SearchBar from "../../components/search_bar";
+import MainContentLayout from "../../components/main_content_layout";
 
 export default function Products() {
+  const products = useLoaderData();
+  console.log(products);
+
   return(
     <>
-      <SearchBar path="/products"/>
+      <MainContentLayout>
+        <SearchBar path="/products"/>
+      </MainContentLayout>
     </>
   );
 }
\ No newline at end of file
-- 
cgit v1.2.3

