Only return one segment for highlight category

This commit is contained in:
Ajay Ramachandran
2021-04-05 23:48:51 -04:00
parent 7bf09906d3
commit 8088f37632
7 changed files with 48 additions and 11 deletions

10
src/utils/categoryInfo.ts Normal file
View File

@@ -0,0 +1,10 @@
import { Category, CategoryActionType } from "../types/segments.model";
export function getCategoryActionType(category: Category): CategoryActionType {
switch (category) {
case "highlight":
return CategoryActionType.POI;
default:
return CategoryActionType.Skippable;
}
}