Files
astuto/app/javascript/components/common/SidebarBox.tsx
Riccardo Graziosi 8e75a85873 Refactor CSS (#116)
Refactor CSS files and structure. Also refactors some html and React components for a smarter use of CSS classes.
2022-06-08 10:20:36 +02:00

18 lines
380 B
TypeScript

import * as React from 'react';
import { BoxTitleText } from './CustomTexts';
interface Props {
title: string;
customClass?: string;
children: React.ReactNode;
}
const SidebarBox = ({ title, customClass, children }: Props) => (
<div className={`sidebarBox ${customClass}`}>
<BoxTitleText>{title}</BoxTitleText>
{children}
</div>
);
export default SidebarBox;