sass-site/source/helpers/sass_helpers.ts

15 lines
287 B
TypeScript
Raw Normal View History

2023-02-26 02:07:51 +01:00
export function getImplStatus(status: string | boolean | null) {
2023-02-25 13:44:14 +01:00
switch (status) {
case null:
return status;
case true:
return '✓';
case false:
return '✗';
case 'partial':
return 'partial';
default:
return `since ${status}`;
}
}