Files
twenty_crm/packages/twenty-front/src/modules/activities/table/components/CellCommentChip.tsx
2023-12-10 18:10:54 +01:00

19 lines
493 B
TypeScript

import styled from '@emotion/styled';
import { CommentChip, CommentChipProps } from './CommentChip';
type CellCommentChipProps = CommentChipProps;
// TODO: tie those fixed values to the other components in the cell
const StyledCellWrapper = styled.div``;
export const CellCommentChip = ({ count, onClick }: CellCommentChipProps) => {
if (count === 0) return null;
return (
<StyledCellWrapper>
<CommentChip count={count} onClick={onClick} />
</StyledCellWrapper>
);
};