import clsx from 'clsx' ; import * as resetStyles from './reset.css' ; import { sprinkles , Sprinkles } from './sprinkles.css' ; export interface Atoms extends Sprinkles { reset ? : keyof JSX . IntrinsicElements ; } export const atoms = ( { reset , ... rest } ) => { if ( ! reset ) { return sprinkles ( rest ) ; } const elementReset = resetStyles . element [ reset as keyof typeof resetStyles . element ] ; const sprinklesClasses = sprinkles ( rest ) ; return clsx ( resetStyles . base , elementReset , sprinklesClasses ) ; } ;