import { LockIconsProps } from "./welcome-types.ts"; /** * LockIcons Component * Displays encryption status icons (green locked or red unlocked) * Centered absolutely within parent container * * @param isPasswordSet - Whether encryption password is set * @param isSkipped - Whether user skipped encryption setup * @param onClearSkip - Handler to re-enable encryption setup */ export default function LockIcon( { isPasswordSet, isSkipped, onClearSkip, onChangePin, isEncrypted, onRequestPin, }: LockIconsProps, ) { return ( <> {/* Green closed lock icon when encryption is enabled */} {isPasswordSet && (
)} {/* Red open lock button when encryption is skipped */} {isSkipped && (
)} {/* Yellow caution icon when account is encrypted but this device has no PIN yet */} {isEncrypted && !isPasswordSet && !isSkipped && (
)} ); }