mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
20 lines
363 B
JavaScript
20 lines
363 B
JavaScript
|
|
|
|
|
|
const statuses = {
|
|
'✅': 'native',
|
|
'✳️': 'rosetta',
|
|
'⏹': 'no-in-progress',
|
|
'🚫': 'no',
|
|
'🔶': 'unreported',
|
|
}
|
|
|
|
export function getStatusName ( status ) {
|
|
for (const key in statuses) {
|
|
if (status.trim().startsWith( key )) return statuses[key]
|
|
}
|
|
|
|
throw new Error('Non status matched')
|
|
}
|
|
|
|
export default statuses
|