2023-05-18 13:37:01 +00:00
|
|
|
import { ExclamationIcon } from "components/icons";
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
bannerName: string;
|
2023-08-14 06:14:17 +00:00
|
|
|
description?: string;
|
2023-05-18 13:37:01 +00:00
|
|
|
};
|
|
|
|
|
2023-08-14 06:14:17 +00:00
|
|
|
export const IntegrationAndImportExportBanner: React.FC<Props> = ({ bannerName, description }) => (
|
2023-09-13 17:39:55 +00:00
|
|
|
<div className="flex flex-col items-start gap-3 py-3.5 border-b border-custom-border-200">
|
|
|
|
<h3 className="text-xl font-medium">{bannerName}</h3>
|
2023-08-14 06:14:17 +00:00
|
|
|
{description && (
|
|
|
|
<div className="flex items-center gap-3 rounded-[10px] border border-custom-primary/75 bg-custom-primary/5 p-4 text-sm text-custom-text-100">
|
|
|
|
<ExclamationIcon height={24} width={24} className="fill-current text-custom-text-100" />
|
|
|
|
<p className="leading-5">{description}</p>
|
|
|
|
</div>
|
|
|
|
)}
|
2023-05-18 13:37:01 +00:00
|
|
|
</div>
|
|
|
|
);
|