Income earned in UK by Student and Roth Contribution

My Daughter (who is my dependent) worked a job in a restaurant in the UK and earned a few thousand pounds. She contributed half to her Roth IRA earlier in the year. Is she able to use the foreign income to fund her Roth IRA contribution for 2023? Assume I need to file a separate return for her to show the income.