mirror of
https://github.com/dylanbenzi/yellowbird.git
synced 2026-11-27 01:07:01 +00:00
26 lines
670 B
TypeScript
26 lines
670 B
TypeScript
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="flex flex-col h-80 bg-card rounded-lg 2xl:h-full">
|
|
<div className="flex justify-between px-2 py-2 pb-0">
|
|
<div className="flex items-center text-lg px-2 font-semibold">
|
|
{title}
|
|
</div>
|
|
</div>
|
|
<div className="flex-grow w-full overflow-hidden mt-2 border-t border-neutral-700">
|
|
{children}
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default HomepageModule;
|