consolidated modules

This commit is contained in:
2024-02-26 15:35:52 -05:00
parent 650f84be2a
commit db680b991e
12 changed files with 54 additions and 88 deletions
@@ -0,0 +1,24 @@
import { Settings2Icon } from "lucide-react";
import React, { ReactNode } from "react";
import { Button } from "../ui/button";
interface HomepageModuleProps {
title: string;
children?: ReactNode;
}
const HomepageModule = ({ title, children }: HomepageModuleProps) => {
return (
<div className="h-full bg-popover-foreground rounded-lg">
<div className="flex flex-row justify-between px-4 py-4 pb-0">
<div className="flex items-center h-10 text-lg px-2">{title}</div>
<Button variant="ghost" size="sm" className="flex items-center">
<Settings2Icon size={20} />
</Button>
</div>
<div className="h-full w-full">{children}</div>
</div>
);
};
export default HomepageModule;