@@ -8,21 +8,8 @@ import type { Dictionary } from '@/i18n';
88import { caseUrl } from '@/lib/routes' ;
99import { GlassCard } from '@/components/GlassCard' ;
1010import { cn } from '@/lib/cn' ;
11- import {
12- ArrowRightIcon ,
13- FinanceIcon ,
14- OpsIcon ,
15- SupportIcon ,
16- HRIcon ,
17- LogisticsIcon ,
18- ProcurementIcon ,
19- MarketingIcon ,
20- LegalIcon ,
21- DataIcon ,
22- AdminIcon ,
23- ProductIcon ,
24- WindowsIcon ,
25- } from '@/components/icons' ;
11+ import { ArrowRightIcon , WindowsIcon } from '@/components/icons' ;
12+ import { deptIcons } from '@/components/cases/deptIcons' ;
2613import { CopyButton } from '@/components/CopyButton' ;
2714
2815type Props = {
@@ -46,20 +33,6 @@ const departmentOptions: Array<Department | 'all'> = [
4633 'product' ,
4734] ;
4835
49- export const deptIcons : Record < Department , React . ReactNode > = {
50- finance : < FinanceIcon size = { 24 } /> ,
51- operations : < OpsIcon size = { 24 } /> ,
52- 'customer-service' : < SupportIcon size = { 24 } /> ,
53- hr : < HRIcon size = { 24 } /> ,
54- logistics : < LogisticsIcon size = { 24 } /> ,
55- procurement : < ProcurementIcon size = { 24 } /> ,
56- marketing : < MarketingIcon size = { 24 } /> ,
57- legal : < LegalIcon size = { 24 } /> ,
58- data : < DataIcon size = { 24 } /> ,
59- admin : < AdminIcon size = { 24 } /> ,
60- product : < ProductIcon size = { 24 } /> ,
61- } ;
62-
6336export function CasesExplorer ( { cases, locale, dict } : Props ) {
6437 const [ filter , setFilter ] = useState < Department | 'all' > ( 'all' ) ;
6538 const [ query , setQuery ] = useState ( '' ) ;
0 commit comments