import { For, splitProps } from "solid-js"; import type { Component, JSX } from "solid-js"; type SkeletonSize = "sm" | "md" | "lg"; type SkeletonRounded = "none" | SkeletonSize | "full"; type SkeletonProps = { width?: string; height?: string; rounded?: SkeletonRounded }; const roundedClass: Record = { none: "", sm: "rounded-sm", md: "rounded-md", lg: "rounded-lg", full: "rounded-full", }; export const Skeleton: Component & SkeletonProps> = (props) => { const [local, others] = splitProps(props, ["width", "height", "rounded", "class"]); const rounded = () => local.rounded ?? "md"; return (