import { Refresh, VolumeNotice } from "@icon-park/react";
import {
  CardHeader,
  CardIcon,
  CardTool,
  CardBody,
  Card,
} from "@/components/window/Card";
import { ToolButton } from "../window/ToolButton";
import useAppStore from "@/store/app";

const Notice = () => {
  const app = useAppStore();
  return (
    <Card>
      <CardHeader>
        <CardIcon>
          <VolumeNotice /> 公告
        </CardIcon>
        <CardTool>
          <ToolButton>
            <Refresh />
            刷新
          </ToolButton>
        </CardTool>
      </CardHeader>
      <CardBody>{app.notice || "不会真的有人要更新CSGO工具箱吧，不会吧不会吧 xswl"}</CardBody>
    </Card>
  )
};

export default Notice;
