(type: string)
| 25 | } |
| 26 | |
| 27 | function pathTone(type: string) { |
| 28 | switch (type) { |
| 29 | case 'directory': |
| 30 | case 'file': |
| 31 | return 'bg-[#EEF4EA] text-[#55704B] border-[#D9E5D0]'; |
| 32 | case 'missing': |
| 33 | return 'bg-[#FFF1ED] text-[#A05545] border-[#EBCFC6]'; |
| 34 | default: |
| 35 | return 'bg-[#F4F0EA] text-[#7C7062] border-[#E4DACD]'; |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | type DiagnosticsPanelProps = { |
| 40 | report: DiagnosticsReport | null; |