All files / src/pages/main-page/components MainPageNavTabDefinitions.tsx

100% Statements 15/15
100% Branches 4/4
100% Functions 2/2
100% Lines 13/13

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70                  49x 49x 49x 49x 49x 49x 49x     49x 49x 49x 49x 49x     49x                                                                                        
import {
  Home,
  LayoutTemplate,
  LogOut,
  Star,
  Trash2,
  Users,
} from "lucide-react";
 
export enum NavTabParams {
  home = "",
  templates = "templates",
  sharedWithMe = "sharedWithMe",
  starred = "starred",
  bin = "bin",
  logOut = "logOut",
}
 
export enum NavTabPositions {
  top = "top",
  second = "second",
  bottom = "bottom",
  none = "none",
}
 
export const NAV_TABS = [
  {
    id: NavTabParams.home,
    icon: <Home className="icon-large" strokeWidth={1.5} />,
    position: NavTabPositions.top,
    tooltipContent: "Home",
    ariaLabel: "Go to Home page",
  },
  {
    id: NavTabParams.templates,
    icon: <LayoutTemplate className="icon-large" strokeWidth={1.5} />,
    position: NavTabPositions.top,
    tooltipContent: "Templates",
    ariaLabel: "Go to Templates page",
  },
  {
    id: NavTabParams.sharedWithMe,
    icon: <Users className="icon-large" strokeWidth={1.5} />,
    position: NavTabPositions.second,
    tooltipContent: "Shared with me",
    ariaLabel: "Go to Shared with me page",
  },
  {
    id: NavTabParams.starred,
    icon: <Star className="icon-large" strokeWidth={1.5} />,
    position: NavTabPositions.second,
    tooltipContent: "Starred",
    ariaLabel: "Go to Starred page",
  },
  {
    id: NavTabParams.bin,
    icon: <Trash2 className="icon-large" strokeWidth={1.5} />,
    position: NavTabPositions.second,
    tooltipContent: "Bin",
    ariaLabel: "Go to Bin page",
  },
  {
    id: NavTabParams.logOut,
    icon: <LogOut className="icon-large " strokeWidth={1.5} />,
    position: NavTabPositions.bottom,
    tooltipContent: "Logout",
    ariaLabel: "Log out of Ahuora",
  },
];