Custom status elements with parameters(Message, Elimination Time)

STATUS ELEMENTS - CALLOUTS

def warn(text:str,seconds:int,done_display_time: int = 2):
done_message = st.empty()
done_message.warning(text, icon=“:warning:”)
time.sleep(seconds)
time.sleep(done_display_time)
done_message.empty()

def err(text:str,seconds:int,done_display_time: int = 2):
done_message = st.empty()
done_message.error(text, icon=“:x:”)
time.sleep(seconds)
time.sleep(done_display_time)
done_message.empty()

def inf(text:str,seconds:int,done_display_time: int = 2):
done_message = st.empty()
done_message.info(text, icon=“:information_source:”)
time.sleep(seconds)
time.sleep(done_display_time)
done_message.empty()

def completed(text:str,done_display_time:int = 2):
done_message = st.empty()
done_message.success(text, icon=“:white_check_mark:”)
time.sleep(done_display_time)
done_message.empty()