import { faArrowUpRightFromSquare, faBookOpen } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { SECRET_ROTATION_MAP } from "@app/helpers/secretRotationsV2"; import { SecretRotation } from "@app/hooks/api/secretRotationsV2"; type Props = { type: SecretRotation; isConfigured: boolean; }; export const SecretRotationV2ModalHeader = ({ type, isConfigured }: Props) => { const destinationDetails = SECRET_ROTATION_MAP[type]; return (
{`${destinationDetails.name}
{destinationDetails.name} Rotation
Docs

{isConfigured ? `Edit ${destinationDetails.name} Rotation` : `Rotate ${destinationDetails.name}`}

); };