All files / src/utils/components/side-drawer SidebarLockedBadge.jsx

100% Statements 2/2
66.66% Branches 2/3
100% Functions 1/1
100% Lines 2/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17      3x 66x                        
import LockOutlinedIcon from "@mui/icons-material/LockOutlined";
 
/** Minimal lock indicator for sidebar nav — icon only. */
const SidebarLockedBadge = ({ isActive = false }) => (
    <LockOutlinedIcon
        aria-label="Locked"
        sx={{
            fontSize: 16,
            flexShrink: 0,
            opacity: 0.5,
            color: isActive ? "inherit" : "text.secondary",
        }}
    />
);
 
export default SidebarLockedBadge;