mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 11:47:56 +01:00
Refactor CSS files and structure. Also refactors some html and React components for a smarter use of CSS classes.
18 lines
380 B
TypeScript
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; |