mirror of
https://github.com/strapi/strapi.git
synced 2025-08-11 10:18:28 +00:00
23 lines
503 B
JavaScript
23 lines
503 B
JavaScript
import styled from 'styled-components';
|
|
import Background from '../../../../assets/images/background_empty.svg';
|
|
|
|
/* eslint-disable indent */
|
|
|
|
const Section = styled.section`
|
|
text-align: ${({ textAlign }) => textAlign};
|
|
${({ withBackground }) =>
|
|
withBackground &&
|
|
`
|
|
background-image: url(${Background});
|
|
background-position-x: center;
|
|
background-position-Y: center;
|
|
`}
|
|
`;
|
|
|
|
Section.defaultProps = {
|
|
withBackground: false,
|
|
textAlign: 'initial',
|
|
};
|
|
|
|
export default Section;
|