Files
twenty/packages/twenty-front/src/modules/command-menu/pages/common/components/CommandMenuSubPageNavigationHeader.tsx
T
Lucas Bordeau 7f8ec35b5d Added dashboard chart advanced filter components (#15095)
This PR adds the components for advanced filters on chart settings.

It also refactors what's in common between this new command menu page
and the workflow advanced filters.
2025-10-15 16:06:15 +02:00

40 lines
958 B
TypeScript

import styled from '@emotion/styled';
import { IconChevronLeft } from 'twenty-ui/display';
import { IconButton } from 'twenty-ui/input';
const StyledContainer = styled.div`
align-items: center;
display: flex;
flex-direction: row;
`;
const StyledTextContainer = styled.div`
color: ${({ theme }) => theme.font.color.primary};
font-size: ${({ theme }) => theme.font.size.md};
padding-left: ${({ theme }) => theme.spacing(1)};
padding-bottom: ${({ theme }) => theme.spacing(0.2)};
`;
type CommandMenuSubPageNavigationHeaderProps = {
title: string;
onBackClick: () => void;
};
export const CommandMenuSubPageNavigationHeader = ({
onBackClick,
title,
}: CommandMenuSubPageNavigationHeaderProps) => {
return (
<StyledContainer>
<IconButton
onClick={onBackClick}
Icon={IconChevronLeft}
variant="tertiary"
/>
<StyledTextContainer>{title}</StyledTextContainer>
</StyledContainer>
);
};