visuddhinanda 1 anno fa
parent
commit
a3a1f19ad0

+ 18 - 0
dashboard-v4/dashboard/src/components/studio/PublicityIcon.tsx

@@ -0,0 +1,18 @@
+import { GlobalOutlined } from "@ant-design/icons";
+import { TPublicity } from "./PublicitySelect";
+import { LockIcon } from "../../assets/icon";
+
+interface IWidget {
+  value?: TPublicity;
+}
+const PublicityIcon = ({ value }: IWidget) => {
+  return value === "public" ? (
+    <GlobalOutlined />
+  ) : value === "private" ? (
+    <LockIcon />
+  ) : (
+    <></>
+  );
+};
+
+export default PublicityIcon;