1dfeba39eb
This PR was created by [GitStart](https://gitstart.com/) to address the requirements from this ticket: [TWNTY-7532](https://clients.gitstart.com/twenty/5449/tickets/TWNTY-7532). --- ### Description Migrate: - Card - CardContent - CardFooter - CardHeader ### Demo Card in Storybook  ###### Fixes twentyhq/private-issues#86 --------- Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com> Co-authored-by: Charles Bochet <charles@twenty.com>
18 lines
489 B
TypeScript
18 lines
489 B
TypeScript
import { css } from '@emotion/react';
|
|
import styled from '@emotion/styled';
|
|
import { motion } from 'framer-motion';
|
|
|
|
const StyledCardContent = styled(motion.div)<{ divider?: boolean }>`
|
|
background-color: ${({ theme }) => theme.background.secondary};
|
|
padding: ${({ theme }) => theme.spacing(4)};
|
|
|
|
${({ divider, theme }) =>
|
|
divider
|
|
? css`
|
|
border-bottom: 1px solid ${theme.border.color.medium};
|
|
`
|
|
: ''}
|
|
`;
|
|
|
|
export { StyledCardContent as CardContent };
|