mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-19 08:42:08 +03:00
9 lines
323 B
TypeScript
9 lines
323 B
TypeScript
import { BrainManagementTab, brainManagementTabs } from "../types";
|
|
|
|
export const getTargetedTab = (): BrainManagementTab | undefined => {
|
|
const targetedTab = window.location.hash.split("#")[1];
|
|
if (brainManagementTabs.includes(targetedTab as BrainManagementTab)) {
|
|
return targetedTab as BrainManagementTab;
|
|
}
|
|
};
|