#!/bin/bash

# LibrePortal Tag State Manager
# Handles state detection for LibrePortal tags

# Check tag state (unconfigured or configured)
tagsManagerGetTagState()
{
    local file_path="$1"
    local tag_name="$2"
    local content=$(tagsManagerGetTagContent "$file_path" "$tag_name")
    
    if [[ "$content" =~ _DATA ]]; then
        echo "unconfigured"
    else
        echo "configured"
    fi
}
