File size: 1,305 Bytes
ff0e173
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
'use client';

import * as React from 'react';
import Link from 'next/link';

export default function AdminHeader() {
  return (
    <div className="w-full pb-6 mb-8 flex flex-col sm:flex-row justify-between items-start sm:items-center gap-4">
      {/* Left Side: Back to home and Dashboard title */}
      <div className="flex items-center gap-4">
        <Link
          href="/"
          className="inline-flex items-center justify-center h-9 px-4 rounded-full text-xs font-semibold text-white bg-gradient-to-r from-cyan-500 to-blue-600 shadow-lg shadow-blue-500/25 hover:brightness-110 transition-all duration-150 active:scale-95 cursor-pointer"
        >
          ← Home
        </Link>
        <h1 className="text-xl font-bold text-white tracking-tight">Knowledge Base Admin</h1>
      </div>

      {/* Changes save and publish automatically — no manual publish step. */}
      <div className="flex items-center gap-2 text-xs font-medium text-white/50">
        <span className="relative flex h-2 w-2">
          <span className="absolute inline-flex h-full w-full rounded-full bg-emerald-400 opacity-75 animate-ping" />
          <span className="relative inline-flex h-2 w-2 rounded-full bg-emerald-400" />
        </span>
        Auto-saved &amp; published
      </div>
    </div>
  );
}