Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { NavigationSchema2 } from "../types";
- import {
- MdOutlineHome,
- MdOutlineGroup,
- MdOutlineCampaign,
- MdOutlineBusiness,
- MdOutlineHealthAndSafety,
- MdOutlineCloud,
- MdOutlineHomeWork,
- MdOutlineTextSnippet,
- MdOutlineCameraAlt,
- MdOutlineRemoveRedEye,
- MdOutlineLock,
- MdOutlineSearch,
- MdOutlineHandyman,
- MdOutlineFavoriteBorder,
- MdOutlineMail,
- MdHomeFilled,
- MdOutlineEmojiEmotions,
- MdOutlineDesktopMac,
- MdOutlineStickyNote2,
- MdOutlineCases,
- MdOutlineDirectionsRun,
- MdOutlineStarOutline,
- MdOutlineQuestionAnswer,
- MdOutlineCalendarMonth,
- MdOutlineVideoCameraFront,
- MdOutlineWarehouse
- }
- from "react-icons/md";
- import {
- HiOutlineGlobe,
- HiOutlineGlobeAlt,
- } from "react-icons/hi";
- const navigation2: NavigationSchema2[] = [
- {
- id: "1",
- title: "Home",
- iconBefore: MdOutlineHome,
- path:"/",
- },
- {
- id: "2",
- title: "Who We Are",
- iconBefore: MdOutlineGroup,
- items: [
- {
- id: "sky",
- title: "Sky",
- path: "/sky",
- iconBefore: MdOutlineCloud,
- },
- {
- id: "gott",
- title: "Global OTT Technology",
- path: "/gott",
- iconBefore: HiOutlineGlobe,
- },
- {
- id: "global-reliability",
- title: "Global Reliability Engineering",
- path: "/global-reliability",
- iconBefore: HiOutlineGlobeAlt,
- },
- {
- id: "operations-observability",
- title: "Operations & Observability",
- path: "/operations-observability",
- iconBefore: MdOutlineSearch,
- items: [
- {
- id: "oo-overview",
- title: 'Overview',
- path: '/operations-observability',
- },
- {
- id: "ai-engineering",
- title: "Automation & Insight Engineering",
- path: "/teams/aiengineering",
- },
- {
- id: "emerging-sres",
- title: "Emerging SREs",
- path: "/teams/emergingSREs",
- },
- {
- id: "observability-operations",
- title: "Observability Operations",
- path: "/teams/operations",
- },
- ],
- },
- {
- id: "platform-governance",
- title: "Platform Governance",
- path: "/platform-governance",
- iconBefore: MdOutlineRemoveRedEye,
- items: [
- {
- id: "platform-governance-overview",
- title: 'Overview',
- path: '/platform-governance',
- },
- {
- id: "platform-performance",
- title: "Platform Performance",
- path: "/teams/platformPerformance",
- },
- {
- id: "platform-data-engineering",
- title: "Platform and Data Engineering",
- path: "/teams/platformDataEngineering",
- },
- {
- id: "platform-assurance",
- title: "Platform Assurance",
- path: "/teams/platformAssurance",
- },
- {
- id: "platform-governance-sre",
- title: "Platform Governance SRE",
- path: "/teams/platformGovernanceSRE",
- },
- ],
- },
- {
- id: "site-reliability-engineering",
- title: "Site Reliability Engineering",
- path: "/sre",
- iconBefore: MdOutlineHandyman,
- items: [
- {
- id: "sre-overview",
- title: 'Overview',
- path: '/sre',
- },
- {
- id: "cloud-engineering-platform",
- title: "Cloud Engineering Platform",
- path: "/teams/cloudEngineeringPlatform",
- },
- {
- id: "cloud-engineering-central-services",
- title: "Cloud Engineering Central Services",
- path: "/teams/cloudEngineeringCentralServices",
- },
- {
- id: "content-supply-sre",
- title: "Content Supply SRE",
- path: "/teams/contentSupply",
- },
- {
- id: "data-platforms-reliability",
- title: "Data Platforms Reliability",
- path: "/teams/dataPlatformsReliability",
- },
- {
- id: "discovery-reliability",
- title: "Discovery Reliability",
- path: "/teams/discoveryReliability",
- },
- {
- id: "top-sre",
- title: "TOP SRE",
- path: "/teams/TOP",
- },
- {
- id: "ovp-sre",
- title: "OVP SRE",
- path: "/teams/ovp",
- },
- {
- id: "paylite-sre",
- title: "Paylite SRE",
- path: "/teams/paylite",
- },
- {
- id: "platform-engineering",
- title: "Platform Engineering",
- path: "/teams/platformEngineering",
- },
- {
- id: "strategic-kafka-sre",
- title: "Strategic Kafka SRE",
- path: "/teams/strategicKafka",
- },
- {
- id: "streaming-sds-sre",
- title: "Streaming (SDS) SRE",
- path: "/teams/streaming",
- },
- {
- id: "streaming-platform-capabilities-sre",
- title: "Streaming and Platform Capabilities (SPC) SRE",
- path: "/teams/streamingPlatformCapabilities",
- },
- ],
- },
- {
- id: "global-ott-security",
- title: "Global OTT Security",
- path: "/security",
- iconBefore: MdOutlineLock,
- items: [
- {
- id: "global-ott-overview",
- title: 'Overview',
- path: '/security',
- },
- {
- id: "penetration-testing",
- title: "Penetration Testing",
- path: "/teams/penetrationTesting",
- },
- {
- id: "security-consultancy",
- title: "Security Consultancy",
- path: "/teams/securityConsulting",
- },
- {
- id: "security-engineering",
- title: "Security Engineering",
- path: "/teams/securityEngineering",
- },
- {
- id: "security-operations",
- title: "Security Operations",
- path: "/teams/securityOperations",
- },
- ],
- },
- {
- id: "reliability-portfolio",
- title: "Reliability Portfolio",
- path: "/portfolio",
- iconBefore: MdOutlineCases,
- items: [
- {
- id: "reliability-portfolio-overview",
- title: 'Overview',
- path: '/portfolio',
- },
- {
- id: "finops",
- title: "FinOps",
- path: "/teams/finOps",
- },
- {
- id: "portfolio-delivery",
- title: "Portfolio Delivery",
- path: "/teams/portfolioDelivery",
- },
- {
- id: "portfolio-analysis",
- title: "Portfolio Analysis",
- path: "/teams/portfolioAnalysis",
- },
- ],
- },
- ],
- },
- {
- id: "3",
- title: "About Us",
- iconBefore: MdOutlineCampaign,
- items: [
- {
- id: "events",
- title: "Events",
- path: "/events",
- iconBefore: MdOutlineCalendarMonth,
- },
- {
- id: "culture",
- title: "Our Culture",
- path: "/culture",
- iconBefore: MdOutlineEmojiEmotions,
- },
- {
- id: "career",
- title: "Career",
- path: "/career",
- iconBefore: MdOutlineDirectionsRun,
- },
- {
- id: "recognition",
- title: "Recognition",
- path: "/recognition",
- iconBefore: MdOutlineStarOutline,
- },
- {
- id: "blog",
- title: "Blog",
- path: "/blog",
- iconBefore: MdOutlineTextSnippet,
- },
- ]
- },
- {
- id: "4",
- title: "Life At Sky",
- iconBefore: MdOutlineBusiness,
- items: [
- {
- id: "getting-setup",
- title: "Getting Setup",
- path: "/getting-setup",
- iconBefore: MdOutlineDesktopMac,
- },
- {
- id: "campus-life",
- title: "Campus Life",
- path: "/campus-life",
- iconBefore: MdOutlineWarehouse,
- },
- {
- id: "remote-life",
- title: "Remote Life",
- path: "/remote-life",
- iconBefore: MdHomeFilled,
- },
- {
- id: "hybrid-working",
- title: "Hybrid Working",
- path: "/hybrid-working",
- iconBefore: MdOutlineHomeWork,
- },
- {
- id: "admin",
- title: "Admin",
- path: "/admin",
- iconBefore: MdOutlineStickyNote2,
- },
- {
- id: "wellbeing",
- title: "Wellbeing",
- path: "/wellbeing",
- iconBefore: MdOutlineFavoriteBorder,
- },
- {
- id: "unplugged",
- title: "Unplugged",
- path: "/unplugged",
- iconBefore: MdOutlineVideoCameraFront,
- },
- {
- id: "photo-gallery",
- title: "Photo Gallery",
- path: "/photo-gallery",
- iconBefore: MdOutlineCameraAlt,
- },
- ]
- },
- {
- id: "5",
- title: "Support",
- iconBefore: MdOutlineHealthAndSafety,
- items: [
- {
- id: "contact",
- title: "Contact",
- path: "/contact",
- iconBefore: MdOutlineMail,
- },
- {
- id: "help",
- title: "Help",
- path: "/help",
- iconBefore: MdOutlineQuestionAnswer,
- },
- ]
- },
- ]
- export function checkActiveParentLink(parent: string, child: string): boolean {
- // Find parent in navigation
- const navParent = navigation2.filter(
- (nav) => nav.title.toLowerCase() === parent
- );
- if (navParent && navParent.length > 0 && child) {
- const activeChild = navParent[0].items?.find(
- (navchild: NavigationSchema2) => navchild.path?.slice(1) === child
- );
- return child === activeChild?.path?.slice(1);
- }
- return false;
- }
- export default navigation2;
Advertisement
Add Comment
Please, Sign In to add comment