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,OAAC,CAAEC,SAAAA,CAAQ,CAAqB,CAAAzB,EAChDN,EAAWgB,CAAAA,EAAAA,EAAAA,WAAAA,IAEXgB,EAAchC,MAAAA,EAAAA,KAAAA,EAAAA,EAAUW,QAAQ,CACpCR,EAAAA,EAAsBA,CAAC8B,SAAS,CAACjC,QAAQ,EAG3C,MACE,GAAAiB,EAAAiB,IAAA,EAACC,MAAAA,CAAIX,UAAU,0CACZQ,EACC,GAAAf,EAAAC,GAAA,EAACkB,EAAAA,cAAcA,CAAAA,CAACrC,MAAM,SAEtB,GAAAkB,EAAAiB,IAAA,EAAAjB,EAAAoB,QAAA,YACE,GAAApB,EAAAC,GAAA,EAACkB,EAAAA,cAAcA,CAAAA,CACbE,aAAY,GACZC,WAAY,GACZC,UAAU,SAEZ,GAAAvB,EAAAC,GAAA,EAACJ,EAAiBA,CAAAA,MAIrBiB,IAGP","sources":["webpack://_N_E/?ff8f","webpack://_N_E/./src/app/(allowed)/community/(list)/_components/CommunityCategory.tsx","webpack://_N_E/./src/app/(allowed)/community/(list)/layout.tsx"],"sourcesContent":["import(/* webpackMode: \"eager\" */ \"/codebuild/output/src3951433904/src/wello-client/packages/wello/src/app/(allowed)/community/(list)/layout.tsx\");\n","'use client';\n\nimport { Tab } from '@common/components';\nimport { cn } from '@common/utils';\nimport { usePathname } from 'next/navigation';\n\nimport { CustomLink } from '@/components/atom/CustomLink';\nimport { COMMUNITY_HEADER_ITEMS, ROUTES } from '@/constants';\n\nconst CATEGORY_LIST = Object.values({\n all: {\n title: '전체',\n pathname: '',\n },\n ...Object.fromEntries(\n Object.entries(COMMUNITY_HEADER_ITEMS).filter(\n ([, item]) => item.key !== 'welloNews',\n ),\n ),\n});\n\nconst getInitialCategory = (pathname: string | null) => {\n if (pathname === null) return '';\n\n const matchedCategory = Object.values(COMMUNITY_HEADER_ITEMS).find(\n (category) => pathname.includes(`/${category.pathname}`),\n );\n\n return matchedCategory ? matchedCategory.pathname : '';\n};\n\nexport const CommunityCategory = () => {\n const pathname = usePathname();\n\n const selectCategory = getInitialCategory(pathname);\n\n return (\n