mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-11-02 01:15:31 +00:00
28 lines
540 B
TypeScript
28 lines
540 B
TypeScript
import { Link } from "@nextui-org/react";
|
|
import React from "react";
|
|
|
|
interface FindingsCardContentProps {
|
|
title: string;
|
|
url?: string;
|
|
description: string;
|
|
}
|
|
|
|
export const FindingsCardContent: React.FC<FindingsCardContentProps> = ({
|
|
title,
|
|
url,
|
|
description,
|
|
}) => {
|
|
return (
|
|
<>
|
|
<p className="text-sm font-bold mt-3">{title}</p>
|
|
{url ? (
|
|
<Link className="text-sm" href={url}>
|
|
{description}
|
|
</Link>
|
|
) : (
|
|
<p className="text-sm">{description}</p>
|
|
)}
|
|
</>
|
|
);
|
|
};
|