|
1
|
import { CORE_LAYOUT_IDS } from "@medusajs/admin-shared" |
|
2
|
import { LayoutDefinition } from "./types" |
|
3
|
import { |
|
4
|
SingleColumnLayoutComponent, |
|
5
|
SingleRowLayoutComponent, |
|
6
|
TwoColumnLayoutComponent, |
|
7
|
} from "../layout/pages" |
|
8
|
import { SettingsSidebarLayoutComponent } from "../layout/settings-layout/settings-sidebar-layout-component" |
|
9
|
|
|
10
|
export const CORE_LAYOUTS: LayoutDefinition[] = [ |
|
11
|
{ |
|
12
|
id: CORE_LAYOUT_IDS.SINGLE_COLUMN, |
|
13
|
sections: [{ id: "main", ordering: "list" }], |
|
14
|
Component: SingleColumnLayoutComponent, |
|
15
|
}, |
|
16
|
{ |
|
17
|
id: CORE_LAYOUT_IDS.SINGLE_ROW, |
|
18
|
sections: [{ id: "main", ordering: "horizontal-list" }], |
|
19
|
Component: SingleRowLayoutComponent, |
|
20
|
}, |
|
21
|
{ |
|
22
|
id: CORE_LAYOUT_IDS.TWO_COLUMN, |
|
23
|
sections: [ |
|
24
|
{ id: "main", ordering: "list" }, |
|
25
|
{ id: "side", ordering: "list" }, |
|
26
|
], |
|
27
|
Component: TwoColumnLayoutComponent, |
|
28
|
}, |
|
29
|
{ |
|
30
|
id: CORE_LAYOUT_IDS.SETTINGS_SIDEBAR, |
|
31
|
sections: [ |
|
32
|
{ id: "general", ordering: "list" }, |
|
33
|
{ id: "developer", ordering: "list" }, |
|
34
|
{ id: "myAccount", ordering: "list" }, |
|
35
|
{ id: "extensions", ordering: "list" }, |
|
36
|
], |
|
37
|
Component: SettingsSidebarLayoutComponent, |
|
38
|
}, |
|
39
|
] |