import { InlineLinkClassName } from './InlineLink' import { PASSWORD_STRENGTH_COLOR, PASSWORD_STRENGTH_PERCENTAGE } from '@/lib/constants' import { PasswordStrengthScore } from '@/lib/password-strength' 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.') + ' '} .

) }