mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-20 07:07:59 +00:00
23 lines
686 B
TypeScript
23 lines
686 B
TypeScript
import React from 'react';
|
|
import styled from 'styled-components';
|
|
import { useUserContext } from '../context/useUserContext';
|
|
import { HomePageRecommendations } from './HomePageRecommendations';
|
|
|
|
const BodyContainer = styled.div`
|
|
padding: 20px 100px;
|
|
margin: 0;
|
|
background-color: ${(props) => props.theme.styles['homepage-background-lower-fade']};
|
|
> div {
|
|
margin-bottom: 20px;
|
|
}
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
`;
|
|
|
|
export const HomePageBody = () => {
|
|
const user = useUserContext()?.user;
|
|
return <BodyContainer>{user && <HomePageRecommendations user={user} />}</BodyContainer>;
|
|
};
|