mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-10 13:34:16 +00:00
21 lines
535 B
TypeScript
21 lines
535 B
TypeScript
import { Icon } from "@iconify/react";
|
|
import { Divider } from "@nextui-org/react";
|
|
import React from "react";
|
|
|
|
interface HeaderProps {
|
|
title: string;
|
|
icon: string;
|
|
}
|
|
|
|
export const Header: React.FC<HeaderProps> = ({ title, icon }) => {
|
|
return (
|
|
<>
|
|
<header className="flex items-center gap-3 py-4">
|
|
<Icon className="text-default-500" height={40} icon={icon} width={40} />
|
|
<h1 className="font-bold text-default-700 text-2xl">{title}</h1>
|
|
</header>
|
|
<Divider className="mb-4" />
|
|
</>
|
|
);
|
|
};
|