import { warn } from "@chakra-ui/utils" ; export interface BaseBreakpointConfig { sm : string ; md : string ; lg : string ; xl : string ; "2xl" ? : string ; [ key ] : string | undefined ; } export type Breakpoints < T > = T & { base : "0em" ; } ; export const createBreakpoints = < T extends BaseBreakpointConfig > ( config ) : Breakpoints < T > => { /** TODO: Decide on whether to keep the `createBreakpoints` call. */ return { base : "0em" , ... config } ; } ;