|
1
|
import { defineRouteConfig } from "@medusajs/admin-sdk" |
|
2
|
import { LayoutComposer } from "@medusajs/dashboard/components" |
|
3
|
import { Toaster } from "@medusajs/ui" |
|
4
|
import GiftCardIcon from "../../components/icons/gift-card-icon" |
|
5
|
import GiftCardProductsSection from "./components/gift-card-products-section" |
|
6
|
import { GiftCardsTable } from "./components/gift-cards-table/gift-cards-table" |
|
7
|
|
|
8
|
const GiftCardsPage = () => { |
|
9
|
return ( |
|
10
|
<> |
|
11
|
<LayoutComposer |
|
12
|
widgetsZonePrefix="gift_card.list" |
|
13
|
preferredLayoutId="core:two-column" |
|
14
|
sections={{ |
|
15
|
main: ( |
|
16
|
<LayoutComposer.Entry id="GiftCardsTable"> |
|
17
|
<GiftCardsTable /> |
|
18
|
</LayoutComposer.Entry> |
|
19
|
), |
|
20
|
side: ( |
|
21
|
<LayoutComposer.Entry id="GiftCardProductsSection"> |
|
22
|
<GiftCardProductsSection /> |
|
23
|
</LayoutComposer.Entry> |
|
24
|
), |
|
25
|
}} |
|
26
|
/> |
|
27
|
|
|
28
|
<Toaster /> |
|
29
|
</> |
|
30
|
) |
|
31
|
} |
|
32
|
|
|
33
|
export const config = defineRouteConfig({ |
|
34
|
label: "Gift Cards", |
|
35
|
icon: GiftCardIcon, |
|
36
|
}) |
|
37
|
|
|
38
|
export default GiftCardsPage |