"use client"; import { passwordStrength, passwordStrengthLabel } from "@/lib/password"; import { cn } from "@/lib/utils"; export function PasswordStrengthMeter({ password }: { password: string }) { if (!password) return null; const score = passwordStrength(password); const colors = [ "bg-destructive", "bg-destructive", "bg-warning", "bg-success", ]; return (
Força: {passwordStrengthLabel(score)}