I want to have a compose Text component which will act as following, as a parameter it should get a string which is a datetime string, in case if the receive date and current date difference is less then 10 minutes, it should show minutes:seconds ago text (ex 1:56 ago, 6:01 ago), in this case the text box should also start calculating the difference and auto update it, so each second timer should go up. In case if the difference is more then 10 minutes but still in same day the Text should show text Today: Time (ex Today: 17:56), in case if the date is not today then the Text should be show the date like 15 Nov, 20:45 the text component should track the time change and update itself, as soon as new date is received in parameter it should adjust the text.
I want to have a compose Text component which will act as following, as a parameter it should get a string which is a datetime string, in case if the receive date and current date difference is less then 10 minutes, it should show minutes:seconds ago text (ex 1:56 ago, 6:01 ago), in this case the text box should also start calculating the difference and auto update it, so each second timer should go up. In case if the difference is more then 10 minutes but still in same day the Text should show text Today: Time (ex Today: 17:56), in case if the date is not today then the Text should be show the date like 15 Nov, 20:45 the text component should track the time change and update itself, as soon as new date is received in parameter it should adjust the text.