mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-02-16 10:58:32 -05:00
Start work on new web display
This commit is contained in:
20
WebDisplay/src/components/dashboard-item/main.tsx
Normal file
20
WebDisplay/src/components/dashboard-item/main.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user