from ....localization.localization import Localizer
from ...presence_utilities import Utilities

def presence(rpc,client=None,data=None,content_data=None,config=None):
    _, mode_name = Utilities.fetch_mode_data(data,content_data)
    rpc.update(
        details=f"{mode_name}",
        state=f"{Localizer.get_localized_text('presences','client_states','away')}",
        large_image="game_icon_yellow",
        large_text="VALORANT",
    )
