This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { useState } from 'react' | |
| const usePagination = (initialPage: number = 1, initialLimit: number = 10) => { | |
| const [currentPage, setCurrentPage] = useState<number>(initialPage) | |
| const [pageLimit, setPageLimit] = useState<number>(initialLimit) | |
| const handlePageChange = (page: number) => { | |
| setCurrentPage(page) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "use client"; | |
| import Image from "next/image"; | |
| import Link from "next/link"; | |
| import { useEffect, useState } from "react"; | |
| type InstagramPost = { | |
| id: string; | |
| caption: string; | |
| media_url: string; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use client' | |
| import Image from 'next/image' | |
| import SectionHeading from '../../components/SectionHeading' | |
| import avatar from '/public/assets/avatar.jpeg' | |
| // Import swiper/react | |
| import { ChevronLeftIcon, ChevronRightIcon } from '@heroicons/react/16/solid' | |
| import 'swiper/css' | |
| import 'swiper/css/navigation' | |
| import { Autoplay, Navigation } from 'swiper/modules' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "name": "Afghanistan", | |
| "dial_code": "+93", | |
| "code": "AF" | |
| }, | |
| { | |
| "name": "Aland Islands", | |
| "dial_code": "+358", | |
| "code": "AX" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "flag": "https://twemoji.maxcdn.com/2/svg/1f1e6-1f1e8.svg", | |
| "country": "Ascension Island", | |
| "code": "ac" | |
| }, | |
| { | |
| "flag": "https://twemoji.maxcdn.com/2/svg/1f1e6-1f1e9.svg", | |
| "country": "Andorra", | |
| "code": "ad" |