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