feat: improve structure and error handling
This commit is contained in:
@@ -8,11 +8,9 @@ import Title from "@/components/Title"
|
||||
|
||||
import styles from "./sidebar.module.css"
|
||||
|
||||
import type { SidebarProps } from "@/types/requests/myPages/navigation"
|
||||
export default async function Sidebar() {
|
||||
const navigation = await serverClient().contentstack.myPages.navigation.get()
|
||||
|
||||
export default async function Sidebar({ lang }: SidebarProps) {
|
||||
const navigation =
|
||||
await serverClient().contentstack.myPages.navigation.get(lang)
|
||||
return (
|
||||
<aside className={styles.sidebar}>
|
||||
<nav className={styles.nav}>
|
||||
|
||||
Reference in New Issue
Block a user