blob: 87e2094ca08464a9c43fbb0f9c8dae87bd16d611 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 | import React from "react";
import styled from "styled-components";
import { defaultBorderRadius, secondaryDark, appear } from ".";
const SubContainerDiv = styled.div`
  margin: 4px;
  padding: 8px;
  border-radius: ${defaultBorderRadius};
  background-color: ${secondaryDark};
  animation: ${appear} 0.3s ease-in-out;
`;
function SubContainer(props: { children: React.ReactNode; title: string }) {
  return (
    <SubContainerDiv>
      <b className="mb-12">{props.title}</b>
      <br></br>
      {props.children}
    </SubContainerDiv>
  );
}
export default SubContainer;
 |