Remove Tab Context

This commit is contained in:
2024-10-05 11:30:29 +02:00
parent 49c68e3f77
commit 96e0d1b73d
4 changed files with 17 additions and 38 deletions

View File

@@ -1,15 +0,0 @@
import React, { createContext, useContext, useState } from 'react';
const TabContext = createContext();
export const TabProvider = ({ children }) => {
const [activeTab, setActiveTab] = useState('source');
return (
<TabContext.Provider value={{ activeTab, setActiveTab }}>
{children}
</TabContext.Provider>
);
};
export const useTabContext = () => useContext(TabContext);