feat: add product generation and pagination components
- Implemented product generation for categories with a helper function to create 50 products per category. - Added image assets for English and Persian language support. - Created a reusable Pagination component for navigating through product lists. - Developed ProductList component to display products with pagination support. - Defined TypeScript interfaces for product list props and API response structure.
This commit is contained in:
@@ -11,7 +11,7 @@ import { useTranslations } from 'next-intl';
|
||||
import routeFactory from '@/assets/constants/routeFactory';
|
||||
|
||||
export default function Navbar() {
|
||||
const [open, setOpen] = useState(false);
|
||||
const [open, setOpen] = useState<boolean>(false);
|
||||
const pathname = usePathname();
|
||||
const params = useParams();
|
||||
const locale = params.locale as string;
|
||||
|
||||
Reference in New Issue
Block a user