Files
netbird/proxy/web/src/components/TabContext.tsx
2026-02-03 19:05:55 +01:00

13 lines
292 B
TypeScript

import { createContext, useContext } from "react";
type TabContextValue = {
value: string;
onChange: (value: string) => void;
};
export const TabContext = createContext<TabContextValue>({
value: "",
onChange: () => {},
});
export const useTabContext = () => useContext(TabContext);