Files
tm_panel/src/utils/timeframe-extractor.ts
T
AmirReza Jamali 2d664795ad feat(sidebar): add calls section to navigation menu
This commit introduces a new "Calls" section to the main sidebar navigation to provide users with access to call logs.

- Adds a new collapsible "Calls" menu item to the sidebar configuration.
- Includes sub-links for "All Calls", "Incoming", "Outgoing", and "Missed" calls.
- Creates new custom icons (GlobeSearch, CallIncome, CallMade, CallMissed, CallReceived) to support the new menu items.
- Updates `apexcharts` and `react-apexcharts` dependencies to newer versions.
2025-11-04 14:12:20 +03:30

9 lines
228 B
TypeScript

export function createTimeFrameExtractor(
selectedTimeFrame: string | undefined,
) {
return (sectionKey: string) => {
return selectedTimeFrame
?.split(",")
.find((value) => value.includes(sectionKey));
};
}