2021-02-09 11:41:50 +00:00
|
|
|
import React from "react";
|
|
|
|
import styled, { css } from "styled-components";
|
|
|
|
|
|
|
|
// eslint-disable-next-line react/prop-types, no-unused-vars
|
|
|
|
const ClearDiv = ({ orientation, width, ...props }) => <div {...props} />;
|
|
|
|
|
|
|
|
const StyledDiv = styled(ClearDiv)`
|
2022-03-30 22:09:51 +00:00
|
|
|
.subtext {
|
|
|
|
margin-top: 16px;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
}
|
|
|
|
|
2021-02-09 11:41:50 +00:00
|
|
|
${(props) =>
|
|
|
|
(props.orientation === "horizontal" &&
|
|
|
|
css`
|
|
|
|
display: flex;
|
|
|
|
`) ||
|
|
|
|
(props.orientation === "vertical" &&
|
|
|
|
css`
|
2022-04-17 16:59:30 +00:00
|
|
|
display: inline-block;
|
2021-02-09 11:41:50 +00:00
|
|
|
`)};
|
|
|
|
|
|
|
|
width: ${(props) => props.width};
|
|
|
|
`;
|
|
|
|
|
|
|
|
export default StyledDiv;
|