chore: update frontend folder

This commit is contained in:
Steven
2023-08-23 09:13:42 +08:00
parent 40814a801a
commit f5817c575c
129 changed files with 104 additions and 1648 deletions

View File

@ -0,0 +1,20 @@
import Icon from "./Icon";
interface Props {
visibility: Visibility;
className?: string;
}
const VisibilityIcon = (props: Props) => {
const { visibility, className } = props;
if (visibility === "PRIVATE") {
return <Icon.Lock className={className || ""} />;
} else if (visibility === "WORKSPACE") {
return <Icon.Building2 className={className || ""} />;
} else if (visibility === "PUBLIC") {
return <Icon.Globe2 className={className || ""} />;
}
return null;
};
export default VisibilityIcon;