* Init add choose your plan page component * Update price format * Add billing refund trial duration env variable * Add billing benefits * Add Button * Call checkout endpoint * Fix theme color * Add Payment success modale * Add loader to createWorkspace submit button * Fix lint * Fix dark mode * Code review returns * Use a resolver for front requests * Fix 'create workspace' loader at sign up * Fix 'create workspace' with enter key bug
37 lines
963 B
TypeScript
37 lines
963 B
TypeScript
import React from 'react';
|
|
import { useTheme } from '@emotion/react';
|
|
import styled from '@emotion/styled';
|
|
|
|
import { IconCheck } from '@/ui/display/icon';
|
|
|
|
const StyledBenefitContainer = styled.div`
|
|
color: ${({ theme }) => theme.font.color.secondary};
|
|
display: flex;
|
|
flex-direction: row;
|
|
gap: ${({ theme }) => theme.spacing(2)};
|
|
`;
|
|
|
|
const StyledCheckContainer = styled.div`
|
|
align-items: center;
|
|
background-color: ${({ theme }) => theme.background.tertiary};
|
|
border-radius: 50%;
|
|
display: flex;
|
|
height: 16px;
|
|
justify-content: center;
|
|
width: 16px;
|
|
`;
|
|
type SubscriptionBenefitProps = {
|
|
children: React.ReactNode;
|
|
};
|
|
export const SubscriptionBenefit = ({ children }: SubscriptionBenefitProps) => {
|
|
const theme = useTheme();
|
|
return (
|
|
<StyledBenefitContainer>
|
|
<StyledCheckContainer>
|
|
<IconCheck color={theme.grayScale.gray50} size={14} />
|
|
</StyledCheckContainer>
|
|
{children}
|
|
</StyledBenefitContainer>
|
|
);
|
|
};
|