18 lines
478 B
TypeScript
18 lines
478 B
TypeScript
/* 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/. */
|
|
|
|
import React from 'react';
|
|
|
|
type ContextType = {
|
|
title: string
|
|
setTitle: React.Dispatch<React.SetStateAction<string>>
|
|
};
|
|
|
|
const NavBarTitle = React.createContext<ContextType>({
|
|
title: 'Tachidesk',
|
|
setTitle: ():void => {},
|
|
});
|
|
|
|
export default NavBarTitle;
|