import { type ComponentPropsWithRef, type FC, type PropsWithChildren, type ReactNode, } from "react"; import { Card } from "../Card/Card"; import clsx from "clsx"; import { type AsChildProps, Slot } from "../Slot.tsx"; import { IconPlusLarge } from "../Icons"; export function DataTable({ children, className, columns, }: PropsWithChildren<{ className?: string; columns: number | string[] }>) { const style = () => { if (typeof columns === "number") { return { gridTemplateColumns: `repeat(${columns}, minmax(0, 1fr))`, }; } return { gridTemplateColumns: columns.join(" "), }; }; return (