mirror of
https://github.com/dylanbenzi/yellowbird.git
synced 2026-11-27 01:07:01 +00:00
consolidated modules
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user