mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 13:56:43 +00:00
23 lines
615 B
TypeScript
23 lines
615 B
TypeScript
import { ReactNode } from "react";
|
|
import { twMerge } from "tailwind-merge";
|
|
|
|
type Props = {
|
|
label: string;
|
|
children?: ReactNode;
|
|
className?: string;
|
|
labelClassName?: string;
|
|
};
|
|
|
|
export const SecretSyncLabel = ({ label, children, className, labelClassName }: Props) => {
|
|
return (
|
|
<div className={className}>
|
|
<p className={twMerge("text-xs font-medium text-mineshaft-400", labelClassName)}>{label}</p>
|
|
{children ? (
|
|
<p className="text-sm text-mineshaft-100">{children}</p>
|
|
) : (
|
|
<p className="text-sm italic text-mineshaft-400/50">None</p>
|
|
)}
|
|
</div>
|
|
);
|
|
};
|