import { InformationBannerWrapper } from '@/information-banner/components/InformationBannerWrapper'; import styled from '@emotion/styled'; import { JSX, ReactNode } from 'react'; import { Breadcrumb, BreadcrumbProps } from 'twenty-ui'; import { PageBody } from './PageBody'; import { PageHeader } from './PageHeader'; type SubMenuTopBarContainerProps = { children: JSX.Element | JSX.Element[]; title?: string; actionButton?: ReactNode; className?: string; links: BreadcrumbProps['links']; }; const StyledContainer = styled.div` display: flex; flex-direction: column; width: 100%; `; const StyledTitle = styled.h3` color: ${({ theme }) => theme.font.color.primary}; font-size: ${({ theme }) => theme.font.size.lg}; font-weight: ${({ theme }) => theme.font.weight.semiBold}; line-height: 1.2; margin: ${({ theme }) => theme.spacing(8, 8, 2)}; `; export const SubMenuTopBarContainer = ({ children, title, actionButton, className, links, }: SubMenuTopBarContainerProps) => { return ( }> {actionButton} {title && {title}} {children} ); };