@naturacosmeticos/natds-web
Version:
A collection of components from Natura Design System for React websites and webapps
16 lines (15 loc) • 788 B
TypeScript
import { ISpacingProps } from '../../Components/Spacing';
import { SpacingStylePropKey } from '../../Components/Spacing/Spacing.props';
import { IThemeWeb } from '../../Themes';
declare type UseSpacingFromStylePropValueArgs = {
props: ISpacingProps;
stylePropName: SpacingStylePropKey;
};
interface GetArgs extends UseSpacingFromStylePropValueArgs {
theme: IThemeWeb;
}
declare type GetSpacingPropValueFunc = ({ props, stylePropName, theme }: GetArgs) => string | number | undefined;
export declare const getSpacingFromStyleProp: GetSpacingPropValueFunc;
declare type UseArgs = ({ props, stylePropName }: UseSpacingFromStylePropValueArgs) => string | number | undefined;
export declare const useSpacingFromStylePropValue: UseArgs;
export default useSpacingFromStylePropValue;