"use client";

import React from "react";

interface NoticeBannerProps {
  text: string;
}

export function NoticeBanner({ text }: NoticeBannerProps) {
  return (
    <div className="pop-dashboard-notice-banner">
      <div className="pop-dashboard-notice-label">공지</div>
      <div className="pop-dashboard-notice-content">
        <div className="pop-dashboard-notice-marquee">
          <span className="pop-dashboard-notice-text">{text}</span>
          <span className="pop-dashboard-notice-text">{text}</span>
        </div>
      </div>
    </div>
  );
}

