"use client";

/** Telegram-style centered date capsule */
export default function ChatDateSeparator({ label }: { label: string }) {
  return (
    <div className="pointer-events-none my-2 flex w-full justify-center">
      <span className="rounded-full bg-black/35 px-3 py-1 text-[12px] font-medium text-white/95 shadow-sm backdrop-blur-sm dark:bg-black/45 dark:text-white/90">
        {label}
      </span>
    </div>
  );
}
