DocSpace-buildtools/packages/asc-web-common/components/Section/sub-components/info-panel-body.js

20 lines
468 B
JavaScript
Raw Normal View History

2022-02-15 11:57:36 +00:00
import Scrollbar from "@appserver/components/scrollbar";
2022-02-09 09:13:16 +00:00
import { inject, observer } from "mobx-react";
import React from "react";
2022-02-11 14:35:18 +00:00
const SubInfoPanelBody = ({ children }) => {
2022-03-21 07:24:43 +00:00
const content = children?.props?.children;
2022-02-09 18:08:22 +00:00
2022-03-21 07:24:43 +00:00
return (
<Scrollbar scrollclass="section-scroll" stype="mediumBlack">
{content}
</Scrollbar>
);
2022-02-09 09:13:16 +00:00
};
2022-02-11 14:35:18 +00:00
SubInfoPanelBody.displayName = "SubInfoPanelBody";
2022-02-10 15:52:27 +00:00
export default inject(() => {
2022-03-21 07:24:43 +00:00
return {};
2022-02-11 14:35:18 +00:00
})(observer(SubInfoPanelBody));