import { getComponentRoundness, getThemeConfig, SPACING_STYLES } from "@/lib/theme"; import { ThemeableProps } from "@/lib/themeUtils"; import { clsx } from "clsx"; interface SkeletonCardProps extends ThemeableProps { isLoading?: boolean; } // Helper function to get default card roundness from theme function getDefaultCardRoundness(): string { return getComponentRoundness("card"); } // Helper function to get default spacing from centralized theme system function getDefaultSpacing(): string { const themeConfig = getThemeConfig(); return SPACING_STYLES[themeConfig.spacing].spacing; } // Helper function to get default padding from centralized theme system function getDefaultPadding(): string { const themeConfig = getThemeConfig(); return SPACING_STYLES[themeConfig.spacing].padding; } export const SkeletonCard = ({ isLoading, roundness, // Will use theme default if not provided spacing, // Will use theme default if not provided padding, // Will use theme default if not provided }: SkeletonCardProps) => { // Use theme-based values if not explicitly provided const actualRoundness = roundness || getDefaultCardRoundness(); const actualSpacing = spacing || getDefaultSpacing(); const actualPadding = padding || getDefaultPadding(); return (
); };