mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-24 04:51:51 +00:00
23 lines
613 B
TypeScript
23 lines
613 B
TypeScript
"use client";
|
|
|
|
import { getProviderName } from "@/components/ui/entities/get-provider-logo";
|
|
import { getProviderLogo } from "@/components/ui/entities/get-provider-logo";
|
|
import { ProviderType } from "@/types";
|
|
|
|
export const ProviderTitleDocs = ({
|
|
providerType,
|
|
}: {
|
|
providerType: ProviderType;
|
|
}) => {
|
|
return (
|
|
<div className="flex gap-4">
|
|
{providerType && getProviderLogo(providerType as ProviderType)}
|
|
<span className="text-lg font-semibold">
|
|
{providerType
|
|
? getProviderName(providerType as ProviderType)
|
|
: "Unknown Provider"}
|
|
</span>
|
|
</div>
|
|
);
|
|
};
|