1234567891011121314151617181920212223 |
- import * as React from 'react';
- import styled from '@emotion/styled';
- type Props = {
- hasImage?: boolean;
- centered?: boolean;
- children: React.ReactNode;
- theme?: any;
- };
- type WellProps = Omit<React.HTMLProps<HTMLDivElement>, keyof Props> & Props;
- const Well = styled('div')<WellProps>`
- border: 1px solid ${p => p.theme.border};
- box-shadow: none;
- background: ${p => p.theme.backgroundSecondary};
- padding: ${p => (p.hasImage ? '80px 30px' : '15px 20px')};
- margin-bottom: 20px;
- border-radius: 3px;
- ${p => p.centered && 'text-align: center'};
- `;
- export default Well;
|