focalboard/webapp/src/user.tsx

18 lines
393 B
TypeScript
Raw Normal View History

2020-12-07 20:40:16 +01:00
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react'
const UserContext = React.createContext(undefined as IUser|undefined)
2020-12-07 20:40:16 +01:00
interface IUser {
id: string,
username: string,
email: string,
props: Record<string, any>,
createAt: number,
updateAt: number,
}
export {IUser, UserContext}