import { TConfig , Properties , TRecursiveCss } from "@stitches/core" ; import { TypedValue } from "./types" ; export const composeUtil = < P extends keyof Properties > ( ... properties ) => < T extends TConfig > ( ) => ( value ) : TRecursiveCss < T > => properties . reduce ( ( final , cssProp ) => ( { ... final , [ cssProp ] : value , } ) , { } ) ;