mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 13:28:27 +00:00
21 lines
527 B
TypeScript
21 lines
527 B
TypeScript
import { ReactNode } from "react";
|
|
|
|
type Props = {
|
|
label: string;
|
|
children: ReactNode;
|
|
className?: string;
|
|
};
|
|
|
|
export const IdentityAuthFieldDisplay = ({ label, children, className }: Props) => {
|
|
return (
|
|
<div className={className}>
|
|
<span className="text-xs font-medium text-mineshaft-400">{label}</span>
|
|
{children ? (
|
|
<p className="break-words text-sm leading-4">{children}</p>
|
|
) : (
|
|
<p className="text-sm italic leading-4 text-bunker-400">Not set</p>
|
|
)}
|
|
</div>
|
|
);
|
|
};
|