import { faCheck, faCopy, faKey } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { EmptyState, IconButton, Td, Tr } from "@app/components/v2"; type Props = { isLoading: boolean; decryptedSecret: string; isUrlCopied: boolean; copyUrlToClipboard: () => void; }; export const SecretTable = ({ isLoading, decryptedSecret, isUrlCopied, copyUrlToClipboard }: Props) => (
{isLoading &&
Loading...
} {!isLoading && !decryptedSecret && ( )} {!isLoading && decryptedSecret && (
{decryptedSecret}
Copy
)}
);