mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-10 13:37:01 +03:00
11 lines
320 B
TypeScript
11 lines
320 B
TypeScript
import { Category, CategoryActionType } from "../types/segments.model";
|
|
|
|
export function getCategoryActionType(category: Category): CategoryActionType {
|
|
switch (category) {
|
|
case "highlight":
|
|
return CategoryActionType.POI;
|
|
default:
|
|
return CategoryActionType.Skippable;
|
|
}
|
|
}
|