mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 11:17:49 +01:00
18 lines
404 B
TypeScript
18 lines
404 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 ? ' ' + customClass : ''}`}>
|
|
<BoxTitleText>{title}</BoxTitleText>
|
|
{children}
|
|
</div>
|
|
);
|
|
|
|
export default SidebarBox; |