import React from 'react'; import styled, { css } from 'styled-components'; import { getThemePropSelector } from '../src/lib/utils'; const StyledWrapper = styled.div` ${(props) => { const { style, theme } = props; return css` padding: 3rem; height: 100%; background-color: ${theme[style?.backgroundColor || 'backgroundLevel3']}; color: ${theme.textPrimary}; box-sizing: border-box; overflow: auto; `; }} `; const StyledTitle = styled.h3` color: ${getThemePropSelector('textPrimary')}; `; const StyledSubTitle = styled.span` color: ${getThemePropSelector('textPrimary')}; `; const StyledText = styled.text` fill: ${getThemePropSelector('textPrimary')}; `; export const Wrapper = ({ children, className = '', style = {} }) => { return ( {children} ); }; export const Title = ({ children, className = '' }) => { return {children}; }; export const SubTitle = ({ children, className = '' }) => { return {children}; }; export const Text = ({ children, className = '', ...rest }) => { return ( {children} ); };