feat(preview): add NavigationBlock component, show header in preview

NavigationBlock extracted from navigation/page.tsx into reusable component.
Preview now shows real header (ready: true) as first block — 3 of 8 ready.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
AR 15 M4
2026-03-23 16:41:17 +05:00
parent be37ae2508
commit c8217cfc2f
3 changed files with 89 additions and 79 deletions
+3 -1
View File
@@ -1,6 +1,7 @@
"use client";
import { useState, useEffect } from "react";
import { NavigationBlock } from "@/components/blocks/NavigationBlock";
import { HeroBlock } from "@/components/blocks/HeroBlock";
import { DoctorsBlock } from "@/components/blocks/DoctorsBlock";
@@ -40,7 +41,8 @@ const BLOCKS: Array<{
id: "navigation",
name: "Шапка / Навигация",
href: "/components/navigation",
ready: false,
ready: true,
component: <NavigationBlock />,
},
{
id: "hero",