diff --git a/components/nav/navItemWithSmallDropdown.tsx b/components/nav/navItemWithSmallDropdown.tsx index 4c4a8d8d..abda8d77 100644 --- a/components/nav/navItemWithSmallDropdown.tsx +++ b/components/nav/navItemWithSmallDropdown.tsx @@ -1,79 +1,274 @@ -import React, {useState} from "react"; +import React, { useState } from "react"; import Link from "next/link"; -import {UpIcon} from "./UpIcon" -import DownIcon from "./DownIcon" -import Image from "next/image"; +import { UpIcon } from "./UpIcon"; +import DownIcon from "./DownIcon"; +import Image from 'next/image'; +import illustration from "@/public/images/navbar/illustration.png"; +// Interface Definitions export interface NavItemWithSmallDropdownProps { - heading: string; - dropdownData: DropdowndataInterface[]; - } - - export interface DropdowndataInterface{ - heading:string; - links:LinkDatainterface[] - } - export interface LinkDatainterface{ - pagelink:string; - pageName:string; - } -export default function NavItemWithSmallDropdown({heading,dropdownData}:NavItemWithSmallDropdownProps){ - const [openDropdown,setShowDropdown] = useState(false) - const showDropdown = ()=>{ - setShowDropdown(true) - } - const hideDropdown = ()=>{ - setShowDropdown(false) - } - const toggleDropdown =()=>{ - setShowDropdown(!openDropdown) - } - - return( -
Want to achieve 95% coverage by making API calls of all possible permutations?
+ +