mirror of
https://github.com/outline/outline.git
synced 2026-06-23 16:24:23 +03:00
17 lines
286 B
JavaScript
17 lines
286 B
JavaScript
export function presentUser(user) {
|
|
return {
|
|
id: user.id,
|
|
name: user.name,
|
|
username: user.username,
|
|
email: user.email,
|
|
avatarUrl: user.slackData.profile.image_192,
|
|
};
|
|
}
|
|
|
|
export function presentTeam(team) {
|
|
return {
|
|
id: team.id,
|
|
name: team.name,
|
|
};
|
|
}
|