As mentioned in the above link there is a possibility to create dynamic row actions have you try checking this once? this is mentioned under Creating Dynamic Row-Level Actions in the above link.
Let me know if it helps you and close your query by marking it as the best answer so that it can help others in the future.
>> https://developer.salesforce.com/docs/component-library/bundle/lightning-datatable/documentation
As mentioned in the above link there is a possibility to create dynamic row actions have you try checking this once? this is mentioned under Creating Dynamic Row-Level Actions in the above link.
Let me know if it helps you and close your query by marking it as the best answer so that it can help others in the future.
Thanks
>> https://www.axiom-consulting.co/blog/dynamic-row-actions-with-lightning-datatable