List And Details Pane
fun ListAndDetailsPane(onAddProduct: () -> Unit = {}, onCreateCatalog: (List<Long>) -> Unit = {}, onEditProduct: (Long) -> Unit = {})
A Composable that provides an adaptive list-detail layout for products.
It uses NavigableSupportingPaneScaffold to handle different screen sizes and orientations. In large screens or landscape mode, it can show the list and details (or categories) simultaneously.
Parameters
on Add Product
Callback invoked when the user chooses to add a new product.
on Create Catalog
Callback invoked with a list of product IDs to create a catalog.
on Edit Product
Callback invoked when the user chooses to edit a specific product.