import { LoaderHeightWidthProps , LoaderSizeProps , LoaderSizeMarginProps , LoaderHeightWidthRadiusProps , CommonProps } from "../interfaces" ; const commonValues = { loading : true , color : "#000000" , css : "" , speedMultiplier : 1 } ; export function sizeDefaults ( sizeValue ) { return Object . assign ( { } , commonValues , { size : sizeValue } ) ; } export function sizeMarginDefaults ( sizeValue ) { return Object . assign ( { } , sizeDefaults ( sizeValue ) , { margin : 2 } ) ; } export function heightWidthDefaults ( height , width ) { return Object . assign ( { } , commonValues , { height , width } ) ; } export function heightWidthRadiusDefaults ( height , width , radius = 2 ) { return Object . assign ( { } , heightWidthDefaults ( height , width ) , { radius , margin : 2 } ) ; }