mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-17 07:45:52 +01:00
e9e4552658
* refactor: relocate theme-ui as plugin * refactor: relocate theme-ui as plugin * refactor: relocate theme-ui as plugin * chore: fix lint * chore: add missing folder * refactor: relocate theme-ui as plugin * refactor: relocate theme-ui as plugin * refactor: relocate theme-ui as plugin * chore: update scripts * refactor: relocate theme-ui as plugin * refactor: relocate theme-ui as plugin * refactor: relocate theme-ui as plugin * refactor: relocate theme-ui as plugin
19 lines
341 B
TypeScript
19 lines
341 B
TypeScript
import { createContext } from 'react';
|
|
|
|
export interface AppProps {
|
|
user?: User;
|
|
scope: string;
|
|
}
|
|
|
|
export interface User {
|
|
username: string;
|
|
}
|
|
|
|
export interface AppContextProps extends AppProps {
|
|
setUser: (user?: User) => void;
|
|
}
|
|
|
|
const AppContext = createContext<undefined | AppContextProps>(undefined);
|
|
|
|
export default AppContext;
|