(scope: string)
| 166 | * Gets icon for scope |
| 167 | */ |
| 168 | const getScopeIcon = (scope: string) => { |
| 169 | switch (scope) { |
| 170 | case "local": |
| 171 | return <User className="h-3 w-3 text-slate-500" />; |
| 172 | case "project": |
| 173 | return <FolderOpen className="h-3 w-3 text-orange-500" />; |
| 174 | case "user": |
| 175 | return <FileText className="h-3 w-3 text-purple-500" />; |
| 176 | default: |
| 177 | return null; |
| 178 | } |
| 179 | }; |
| 180 | |
| 181 | /** |
| 182 | * Gets scope display name |