products
This commit is contained in:
11
app/[carType]/layout.tsx
Normal file
11
app/[carType]/layout.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import CarType_Header from "@/components/carPageParts/carType_head";
|
||||
import React, { ReactNode } from "react";
|
||||
|
||||
export default function Layout({ children }: { children: ReactNode }) {
|
||||
return (
|
||||
<div>
|
||||
<CarType_Header />
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -1,13 +1,13 @@
|
||||
"use client"
|
||||
"use client";
|
||||
|
||||
import CarType_Header from "@/components/carPageParts/carType_head";
|
||||
import { useParams } from "next/navigation"
|
||||
import Title from "@/components/title";
|
||||
import { useParams } from "next/navigation";
|
||||
|
||||
export default function CartType() {
|
||||
const router = useParams();
|
||||
const router = useParams();
|
||||
return (
|
||||
<div>
|
||||
<CarType_Header/>
|
||||
<div dir="ltr" className="my-20" >
|
||||
<Title text="tex-rent" />
|
||||
</div>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user