import { PASSWORD_STRENGTH_COLOR, PASSWORD_STRENGTH_PERCENTAGE } from 'lib/constants' import { PasswordStrengthScore } from 'lib/password-strength' import { InlineLinkClassName } from './InlineLink' interface Props { passwordStrengthScore: PasswordStrengthScore passwordStrengthMessage: string password: string generateStrongPassword: () => void } export const PasswordStrengthBar = ({ passwordStrengthScore = 0, passwordStrengthMessage = '', password = '', generateStrongPassword, }: Props) => { return ( <> {password && (
{(passwordStrengthMessage ? passwordStrengthMessage : 'This is the password to your Postgres database, so it must be strong and hard to guess.') + ' '} .
> ) }