type Size = "small" | "medium" | "large";

interface SizeStyle {
  padding: string;
  text: string;
  icon: string;
  check: string;
}

export const getSizeStyles = (size?: Size): SizeStyle => {
  const sizeStylesMap: Record<Size, SizeStyle> = {
    small: {
      padding: "h-[32px] px-2",
      text: "text-xs",
      icon: "h-4 w-4 top-[25%]",
      check: "h-4 w-4",
    },
    medium: {
      padding: "h-[40px] px-2",
      text: "text-sm",
      icon: "h-5 w-5 top-2",
      check: "h-5 w-5",
    },
    large: {
      padding: "h-[48px] px-2",
      text: "text-base",
      icon: "h-6 w-7 top-2",
      check: "h-6 w-6",
    },
  };

  return sizeStylesMap[size ?? "medium"];
};
