init
This commit is contained in:
21
src/features/teams/components/team-profile/index.tsx
Normal file
21
src/features/teams/components/team-profile/index.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import { Box, Text } from "@mantine/core";
|
||||
import Header from "./header";
|
||||
import TeamList from "@/features/teams/components/team-list";
|
||||
import { Team } from "../../types";
|
||||
import PlayerList from "@/features/players/components/player-list";
|
||||
|
||||
interface ProfileProps {
|
||||
team: Team;
|
||||
}
|
||||
|
||||
const TeamProfile = ({ team }: ProfileProps) => {
|
||||
return <>
|
||||
<Header team={team} />
|
||||
<Box m='sm' mt='lg'>
|
||||
<Text size='xl' fw={600}>Players</Text>
|
||||
<PlayerList players={team.players} />
|
||||
</Box>
|
||||
</>;
|
||||
};
|
||||
|
||||
export default TeamProfile;
|
||||
Reference in New Issue
Block a user