Files
twenty_crm/front/src/modules/ui/display/checkmark/components/Checkmark.tsx
Matheus Sanchez 590912b30f feat: Adding className as a prop (#2847)
* Adding className as a prop to use emotion

* Adding className to feedback and input components
2023-12-07 18:48:37 +01:00

30 lines
707 B
TypeScript

import React from 'react';
import { useTheme } from '@emotion/react';
import styled from '@emotion/styled';
import { IconCheck } from '@/ui/display/icon';
const StyledContainer = styled.div`
align-items: center;
background-color: ${({ theme }) => theme.color.blue};
border-radius: 50%;
display: flex;
height: 20px;
justify-content: center;
width: 20px;
`;
export type CheckmarkProps = React.ComponentPropsWithoutRef<'div'> & {
className?: string;
};
export const Checkmark = ({ className }: CheckmarkProps) => {
const theme = useTheme();
return (
<StyledContainer className={className}>
<IconCheck color={theme.grayScale.gray0} size={14} />
</StyledContainer>
);
};