feat: preserve speed history and improve account setup
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
export type AccountModeFilter = "all" | "api" | "web";
|
||||
|
||||
export interface AccountModeOption {
|
||||
modeLabel: string;
|
||||
}
|
||||
|
||||
export function matchesAccountModeFilter(option: AccountModeOption, filter: AccountModeFilter): boolean {
|
||||
if (filter === "all") {
|
||||
return true;
|
||||
}
|
||||
if (filter === "api") {
|
||||
return option.modeLabel === "API";
|
||||
}
|
||||
return option.modeLabel.startsWith("Web");
|
||||
}
|
||||
Reference in New Issue
Block a user