mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-13 17:22:54 -05:00
21 lines
437 B
TypeScript
21 lines
437 B
TypeScript
import './main.scss';
|
|
|
|
import { PropsWithChildren } from 'react';
|
|
|
|
type Props = {
|
|
title: string;
|
|
};
|
|
|
|
function DashboardItem(props: PropsWithChildren<Props>) {
|
|
return (
|
|
<>
|
|
<div className="dashboard-item-header bg-primary text-white">
|
|
{props.title}
|
|
</div>
|
|
<div className="dashboard-item-content">{props.children}</div>
|
|
</>
|
|
);
|
|
}
|
|
|
|
export default DashboardItem;
|