1 | import React from "react";
|
2 | import styled from "styled-components";
|
3 |
|
4 | const Item = ({ label, children = "--" }) => {
|
5 | return (
|
6 | <SBox>
|
7 | <SBorder></SBorder>
|
8 | <span style={{ color: "#414141" }}>{label}:</span>
|
9 | <span style={{ color: "#123e91" }}>{children}</span>
|
10 | </SBox>
|
11 | );
|
12 | };
|
13 |
|
14 | export default Item;
|
15 |
|
16 | const SBox = styled.div`
|
17 | margin-right: 20px;
|
18 | margin-bottom: 10px;
|
19 | padding-left: 10px;
|
20 | border-left: 2px solid $color;
|
21 | font-size: 15px;
|
22 | display: flex;
|
23 | align-items: center;
|
24 | `;
|
25 |
|
26 | const SBorder = styled.div`
|
27 | width: 3px;
|
28 | height: 15px;
|
29 | background: blue;
|
30 | margin-right: 5px;
|
31 | position: relative;
|
32 | top: 1px;
|
33 | `;
|