Please program an interactive click event for the 'Xuất Báo Cáo ESG' button:
I see the button exists in both overview-dashboard.tsx and header.tsx. The main one used in the overview dashboard is the primary location. I need to install the dialog component from shadcn first, then update the overview-dashboard to add the loading state and modal functionality.
Run command
Now I have all the context I need. Let me update the overview-dashboard.tsx to add the loading state and modal functionality:
Now let me add the modal dialog at the end of the component, just before the closing </div>:
I've implemented the interactive "Xuat Bao Cao ESG" button with a complete flow: clicking the button triggers a loading state showing a spinning icon with "Dang xu ly du lieu AI..." text for 1.5 seconds, then displays a beautifully animated centered modal with a green checkmark success icon, the report ID (ESG-2026-N3), format details (PDF compliant with GRI & Decree 06/2022/ND-CP), and two action buttons - a primary green "Tai xuong truc tiep" download button and a secondary "Dong" close button. The modal smoothly closes when clicking outside or pressing the close button.
Please program an interactive click event specifically for the 'Xuất Excel' button on the 'Tài chính' screen: