Files
twenty_crm/front/src/modules/ui/layout/page-bar/components/PageTitle.tsx
Charles Bochet ade5e52e55 Clean and re-organize post table refactoring (#1000)
* Clean and re-organize post table refactoring

* Fix tests
2023-07-30 18:26:32 -07:00

27 lines
581 B
TypeScript

import styled from '@emotion/styled';
const TitleAndCollapseContainer = styled.div`
align-items: center;
display: flex;
flex-direction: row;
`;
const TitleContainer = styled.div`
display: flex;
font-size: ${({ theme }) => theme.font.size.lg};
font-weight: ${({ theme }) => theme.font.weight.semiBold};
width: 100%;
`;
type OwnProps = {
title: string;
};
export function PageTitle({ title }: OwnProps) {
return (
<TitleAndCollapseContainer>
<TitleContainer data-testid="top-bar-title">{title}</TitleContainer>
</TitleAndCollapseContainer>
);
}