import { GlobalOutlined, StopOutlined } from "@ant-design/icons";
import type { TPublicity } from "./PublicitySelect"
import { LockIcon } from "../../assets/icon";

interface IWidget {
  value?: TPublicity;
}
const PublicityIcon = ({ value }: IWidget) => {
  return value === "public" ? (
    <GlobalOutlined />
  ) : value === "private" ? (
    <LockIcon />
  ) : value === "disable" ? (
    <StopOutlined style={{ color: "red" }} />
  ) : (
    <></>
  );
};

export default PublicityIcon;
