#602 adminstrator can manage calendar resources (#703)

Co-authored-by: lethemanh <lethemanh@lethemanhs-MacBook-Pro.local>
This commit is contained in:
lethemanh
2026-03-25 14:28:24 +07:00
committed by GitHub
parent fdc9d7651b
commit 43424607d4
21 changed files with 237 additions and 36 deletions
+22 -2
View File
@@ -1,11 +1,31 @@
import { Avatar } from "@linagora/twake-mui";
import { Avatar, Box } from "@linagora/twake-mui";
import LayersOutlinedIcon from "@mui/icons-material/LayersOutlined";
interface ResourceIconProps {
avatarUrl?: string;
colorIcon?: boolean;
color?: string;
}
export function ResourceIcon({ avatarUrl }: ResourceIconProps) {
export function ResourceIcon({
avatarUrl,
colorIcon,
color,
}: ResourceIconProps) {
if (colorIcon && avatarUrl) {
return (
<Box
sx={{
width: "24px",
height: "24px",
backgroundColor: color,
maskImage: `url(${avatarUrl})`,
maskSize: "cover",
}}
/>
);
}
return avatarUrl ? (
<Avatar
sx={{ backgroundColor: "transparent", width: "24px", height: "24px" }}