import { MarginProps } from '@bigcommerce/big-design' ; import React , { HTMLAttributes } from 'react' ; import { StyledMethodBadge } from './styled' ; export interface MethodBadgeProps extends HTMLAttributes < HTMLDivElement > , MarginProps { label : string ; } export const MethodBadge = ( { className , style , label , ... props } ) => ( < StyledMethodBadge { ... props } > { label } < /StyledMethodBadge>);