import { concatenateResources } from "../util/resources" import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "./types" type FlexConfig = { components: { Component: QuartzComponent grow?: boolean shrink?: boolean basis?: string order?: number align?: "start" | "end" | "center" | "stretch" justify?: "start" | "end" | "center" | "between" | "around" }[] direction?: "row" | "row-reverse" | "column" | "column-reverse" wrap?: "nowrap" | "wrap" | "wrap-reverse" gap?: string } export default ((config: FlexConfig) => { const Flex: QuartzComponent = (props: QuartzComponentProps) => { const direction = config.direction ?? "row" const wrap = config.wrap ?? "nowrap" const gap = config.gap ?? "1rem" return (