Files
twenty_crm/front/src/layout/top-bar/TopBar.tsx
Félix Malfait 9bc3aa1fb9 Replace Fontawesome Pro by React-Icons/FA (#93)
* Fontawesome -> ReactIcons cleanup

* No need for npmrc anymore

* Complete migration

* Fix tests

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-05-03 17:24:07 +02:00

39 lines
749 B
TypeScript

import styled from '@emotion/styled';
import { ReactNode } from 'react';
const TopBarContainer = styled.div`
display: flex;
flex-direction: row;
height: 38px;
align-items: center;
background: ${(props) => props.theme.noisyBackground};
padding: 8px;
font-size: 14px;
color: ${(props) => props.theme.text80};
flex-shrink: 0;
`;
const TitleContainer = styled.div`
font-family: 'Inter';
margin-left: 4px;
font-size: 14px;
`;
type OwnProps = {
title: string;
icon: ReactNode;
};
function TopBar({ title, icon }: OwnProps) {
return (
<>
<TopBarContainer>
{icon}
<TitleContainer data-testid="top-bar-title">{title}</TitleContainer>
</TopBarContainer>
</>
);
}
export default TopBar;