- Integrated Zustand for improved state management across components. - Updated modal components to handle visibility based on active tabs, ensuring better user experience. - Refactored various components to utilize the new tab store for managing active tab states. - Enhanced number formatting utility to streamline number and currency display across the application. Made-with: Cursor
12 lines
259 B
TypeScript
12 lines
259 B
TypeScript
"use client";
|
|
|
|
import { createContext, useContext } from "react";
|
|
|
|
const TabIdContext = createContext<string | null>(null);
|
|
|
|
export const TabIdProvider = TabIdContext.Provider;
|
|
|
|
export function useTabId(): string | null {
|
|
return useContext(TabIdContext);
|
|
}
|