Files
yellowbird/src/components/modules/HomepageModuleCard.tsx
T
2024-02-28 23:57:15 -05:00

25 lines
680 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="h-full bg-neutral-800 rounded-lg">
<div className="flex justify-between px-2 py-2 pb-0">
<div className="flex items-center text-lg px-2">{title}</div>
<Button variant="linkNoUnderline" size="sm" className="text-white">
<Settings2Icon size={20} />
</Button>
</div>
<div className="w-full">{children}</div>
</div>
);
};
export default HomepageModule;