2021-01-26 23:32:12 +03:30
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
2021-01-22 17:00:33 +03:30
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
|
|
type ContextType = {
|
|
|
|
|
title: string
|
|
|
|
|
setTitle: React.Dispatch<React.SetStateAction<string>>
|
2021-03-08 21:04:42 +03:30
|
|
|
action: any
|
|
|
|
|
setAction: React.Dispatch<React.SetStateAction<any>>
|
2021-01-22 17:00:33 +03:30
|
|
|
};
|
|
|
|
|
|
2021-03-08 21:04:42 +03:30
|
|
|
const NavBarContext = React.createContext<ContextType>({
|
2021-01-22 17:00:33 +03:30
|
|
|
title: 'Tachidesk',
|
|
|
|
|
setTitle: ():void => {},
|
2021-03-08 21:04:42 +03:30
|
|
|
action: <div />,
|
|
|
|
|
setAction: ():void => {},
|
2021-01-22 17:00:33 +03:30
|
|
|
});
|
|
|
|
|
|
2021-03-08 21:04:42 +03:30
|
|
|
export default NavBarContext;
|