mirror of
https://github.com/rjNemo/ticket_manager
synced 2026-06-06 00:36:39 +00:00
28 lines
776 B
TypeScript
28 lines
776 B
TypeScript
import React, { FC } from "react";
|
|
import { UserVM } from "../VM/UserVM";
|
|
import { UserHeader } from "../components/UserHeader";
|
|
import { UserTabRouter } from "../components/UserTabRouter";
|
|
|
|
interface IProps {
|
|
viewModel: UserVM;
|
|
}
|
|
export const UserPage: FC<IProps> = ({ viewModel }) => {
|
|
const { fullName, presentation, picture, projects, tickets } = viewModel;
|
|
const tabNames: string[] = ["Projects", "Tickets"];
|
|
return (
|
|
<div className="section">
|
|
<div className="container">
|
|
<UserHeader
|
|
picture={picture}
|
|
fullName={fullName}
|
|
presentation={presentation}
|
|
/>
|
|
<UserTabRouter
|
|
tabNames={tabNames}
|
|
projects={projects}
|
|
tickets={tickets}
|
|
/>
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|