# `PhoenixKitEcommerce.Web.Components.ShopLayouts`
[🔗](https://github.com/BeamLabEU/phoenix_kit_ecommerce/blob/v0.1.8/lib/phoenix_kit_ecommerce/web/components/shop_layouts.ex#L1)

Shared layout components for the shop storefront public pages.

Provides two components:
- `shop_public_layout/1` - Public navbar + flash + main content wrapper for guest users
- `shop_layout/1` - Top-level layout dispatcher: dashboard for authenticated, public/app for guests

# `shop_layout`

Top-level layout wrapper for shop pages.

Routes to:
- Dashboard layout for authenticated users
- `shop_public_layout` for guests when `show_sidebar` is true (catalog/category/product pages)
- `LayoutWrapper.app_layout` for guests when `show_sidebar` is false (cart/checkout pages)

## Attributes

* `authenticated` (`:boolean`) (required)
* `show_sidebar` (`:boolean`) - Defaults to `false`.
* `flash` (`:map`) (required)
* `phoenix_kit_current_scope` (`:any`) (required)
* `url_path` (`:string`) (required)
* `current_locale` (`:string`) (required)
* `page_title` (`:string`) (required)
* `sidebar_after_shop` (`:any`) - Defaults to `nil`.
* `current_language` (`:string`) - Defaults to `nil`.
* `current_path` (`:string`) - Defaults to `nil`.
## Slots

* `inner_block` (required)

# `shop_public_layout`

Public shop layout with navbar, flash messages, and main content area.

Used for guest users on catalog/category/product pages.

## Attributes

* `current_language` (`:string`) (required)
* `current_path` (`:string`) (required)
* `flash` (`:map`) (required)
## Slots

* `inner_block` (required)

---

*Consult [api-reference.md](api-reference.md) for complete listing*
