mirror of
https://github.com/netbirdio/netbird.git
synced 2026-08-05 00:15:26 -04:00
13 lines
292 B
TypeScript
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); |