39fe0c81e5
added dummy pages for about and contact. updated tailwind.config.js to include config/*.json to scan for classes. refactored system basics. Removed component-props, using generic LayoutComponentDefinition and LayoutContext. cleanup component-map. Updated renderer to be more failsafe. new abstracted components: vt-mega-menu, vt-sidemenu, vt-banner with 3 variants, vt-header, vt-homebutton, vt-cartbutton, vt-accountbutton, vt-linkbutton,
21 lines
631 B
TypeScript
21 lines
631 B
TypeScript
import { LayoutComponentDefinition, LayoutContext } from "vibentec/component-map";
|
|
import React from "react";
|
|
import SideMenu from "../side-menu";
|
|
import { listRegions } from "@lib/data/regions"
|
|
import { StoreRegion } from "@medusajs/types"
|
|
|
|
export default async function VtSideMenu({ nodes, context }: { nodes: LayoutComponentDefinition; context: LayoutContext }) {
|
|
const regions = await listRegions().then((regions: StoreRegion[]) => regions)
|
|
return (
|
|
<div className="flex-1 basis-0 h-full flex items-center">
|
|
<div className="h-full">
|
|
<SideMenu regions={regions} />
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
|
|
|
|
|