(source: ImportSource)
| 1 | import type { ImportSource } from '../common/types' |
| 2 | |
| 3 | export function getSnippetImportSourceName(source: ImportSource): string { |
| 4 | if (source === 'github-gists') { |
| 5 | return 'GitHub Gists' |
| 6 | } |
| 7 | |
| 8 | if (source === 'vscode-snippets') { |
| 9 | return 'VS Code' |
| 10 | } |
| 11 | |
| 12 | if (source === 'raycast-snippets') { |
| 13 | return 'Raycast' |
| 14 | } |
| 15 | |
| 16 | if (source === 'snippetslab') { |
| 17 | return 'SnippetsLab' |
| 18 | } |
| 19 | |
| 20 | return 'Imported' |
| 21 | } |
no outgoing calls
no test coverage detected