mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 19:57:52 +01:00
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;
|