import { faCheck, faCopy, faKey } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { EmptyState, IconButton, SecretInput, Table, TableContainer, TBody, Td, Th, THead, Tr } from "@app/components/v2"; import { TViewSharedSecretResponse } from "@app/hooks/api/secretSharing"; type Props = { isLoading: boolean; sharedSecret?: TViewSharedSecretResponse; decryptedSecret: string; timeLeft: string; isUrlCopied: boolean; copyUrlToClipboard: () => void; }; export const SecretTable = ({ isLoading, sharedSecret, decryptedSecret, timeLeft, isUrlCopied, copyUrlToClipboard }: Props) => { return ( {!isLoading && sharedSecret && decryptedSecret && ( )} {isLoading && ( )} {!isLoading && !sharedSecret && ( )} {!isLoading && sharedSecret && !decryptedSecret && ( )}
Name Value Valid Until
{sharedSecret.name}
{timeLeft}
Loading...
); };