Export action on custom page

Is it possible to add a an export action to a custom page.

My use case is that I want a page with cards on it, each card has an action to run a predefined export. One is actually XML so will need to be custom but the rest are csv.

After the export is created I also want to be able to mark each record as exported, I already have a field in my model exported_at.

I can do it with custom actions but it it seems like it would be neater to use the in built export action. Currently I have a handful of custom Livewire components on a page all with a custom actions and logic in each action but I can see that getting hard to maintain.
Screenshot_2024-01-25_at_17.09.42.png
Was this page helpful?