mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-29 23:04:23 +00:00
23 lines
576 B
TypeScript
23 lines
576 B
TypeScript
"use client";
|
|
|
|
import { EntityInfo } from "@/components/shadcn/entities";
|
|
import type { ProviderType, ScanProps } from "@/types";
|
|
|
|
export function AccountCell({ scan }: { scan: ScanProps }) {
|
|
const providerInfo = scan.providerInfo;
|
|
|
|
if (!providerInfo) {
|
|
return <span className="text-text-neutral-tertiary text-sm">-</span>;
|
|
}
|
|
|
|
return (
|
|
<div className="max-w-[240px] min-w-0">
|
|
<EntityInfo
|
|
cloudProvider={providerInfo.provider as ProviderType}
|
|
entityAlias={providerInfo.alias}
|
|
entityId={providerInfo.uid}
|
|
/>
|
|
</div>
|
|
);
|
|
}
|