import { InlineLinkClassName } from './InlineLink'
import { SpecialSymbolsCallout } from './SpecialSymbolsCallout'
import { PASSWORD_STRENGTH_COLOR, PASSWORD_STRENGTH_PERCENTAGE } from '@/lib/constants'
import { passwordNeedsPercentEncoding, 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 (
<>
{passwordNeedsPercentEncoding(password) &&
{(passwordStrengthMessage ? passwordStrengthMessage : 'This is the password to your Postgres database, so it must be strong and hard to guess.') + ' '} .
> ) }