import DownloadOutlined from "@mui/icons-material/DownloadOutlined";
import { Button } from "@/shared/ui/Button.jsx";
import { PageHead } from "@/shared/ui/PageHead.jsx";

export function LogToolbar({ canExport, isLogin, onExport }) {
  return (
    <PageHead title={isLogin ? "登录日志" : "操作日志"}>
      {canExport ? (
        <Button onClick={onExport}>
          <DownloadOutlined fontSize="small" />
          导出
        </Button>
      ) : null}
    </PageHead>
  );
}
