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.tsx","webpack://_N_E/./app/events/_components/categoriesNav.tsx"],"sourcesContent":["import { usePathname } from 'next/navigation'\nimport { useMemo, useState } from 'react'\nimport { toPascalCase } from '../typeConverters'\ntype CategoriesRoute = {\n path: string\n}\nexport const categories = [\n {\n path: 'music',\n },\n {\n path: 'art',\n },\n {\n path: 'online',\n },\n {\n path: 'sports',\n },\n]\nexport default function useActiveRouteBanner() {\n const [activeRoute, setActiveRoute] = useState('')\n const [banner, setBanner] = useState('')\n // verifies if routeName is the one active (in browser input)\n const pathname = usePathname()\n\n useMemo(() => {\n const bannerSplit = (routeName: string) => {\n const split = routeName.split('/')\n return split[split.length - 1]\n }\n const handleActiveRoute = (route: CategoriesRoute) => {\n const isActive = pathname?.includes(route.path)\n if (isActive) {\n setActiveRoute(route.path)\n setBanner(bannerSplit(toPascalCase(route.path)))\n }\n }\n\n categories.forEach((route: CategoriesRoute) => {\n handleActiveRoute(route)\n })\n }, [pathname])\n\n return { activeRoute, banner }\n}\n","import(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src1784519652/src/soti/app/events/_components/categoriesNav.tsx\");\n","export function SearchBar(props: {\n variant?: string\n background?: string\n children?: JSX.Element\n placeholder?: string\n borderRadius?: string | number\n [x: string]: any\n}) {\n const { variant, background, children, placeholder, borderRadius, ...rest } = props\n\n return (\n
\n
\n \n \n \n \n \n \n
\n
\n )\n}\n","'use client'\nimport Link from 'next/link'\nimport { SearchBar } from '../../components/icons/SearchBar'\nimport useActiveRouteBanner, { categories } from '../../utils/hooks/useActiveRouteBanner'\nimport { toPascalCase } from '../../utils/typeConverters'\n\nexport default function CategoriesNav() {\n const { activeRoute, banner } = useActiveRouteBanner()\n return (\n
\n
\n \n
\n
\n

Trending {banner}

\n
\n
\n
\n \n
\n
\n )\n}\n\nexport function MainRoutes({ activeRoute }: { activeRoute: string }) {\n return (\n
\n {categories.map((route, index: number) => {\n const isActive = route.path === activeRoute.toLowerCase()\n return (\n
\n \n {toPascalCase(route.path)}\n \n
\n
\n )\n })}\n
\n )\n}\n\nexport function EventNav() {\n const { activeRoute, banner } = useActiveRouteBanner()\n return (\n
\n
\n \n
\n
\n

Trending {banner}

\n
\n
\n
\n \n
\n
\n )\n}\n"],"names":["categories","path","useActiveRouteBanner","activeRoute","setActiveRoute","useState","banner","setBanner","pathname","usePathname","useMemo","bannerSplit","split","routeName","length","handleActiveRoute","route","includes","toPascalCase","forEach","SearchBar","props","variant","background","children","placeholder","borderRadius","rest","div","id","className","input","type","button","aria-label","svg","fill","stroke","viewBox","xmlns","strokeLinecap","strokeLinejoin","strokeWidth","d","CategoriesNav","MainRoutes","h1","map","index","isActive","toLowerCase","Link","href"],"sourceRoot":"","ignoreList":[]}