import classNames from "@calcom/lib/classNames"; type SkeletonBaseProps = { width?: string; height?: string; className?: string; }; interface AvatarProps extends SkeletonBaseProps { // Limit this cause we don't use avatars bigger than thi width: "2" | "3" | "4" | "5" | "6" | "8" | "12"; height: "2" | "3" | "4" | "5" | "6" | "8" | "12"; } interface SkeletonContainer { as?: keyof JSX.IntrinsicElements; children?: React.ReactNode; className?: string; } const SkeletonAvatar: React.FC = ({ width, height, className }) => { return (
); }; const SkeletonText: React.FC = ({ width = "", height = "", className = "" }) => { className = width ? `${className} w-${width}` : className; className = height ? `${className} h-${height}` : className; return (
); }; const SkeletonButton: React.FC = ({ width, height, className }) => { return (
); }; const SkeletonContainer: React.FC = ({ children, as, className }) => { const Component = as || "div"; return {children}; }; export { SkeletonAvatar, SkeletonText, SkeletonButton, SkeletonContainer };