export const withClasses = classes =>
    Array.isArray(classes)
        ? classes.filter(e => !!e).join(' ')
        : Object.entries(classes)
              .filter(([, value]) => value)
              .map(([key]) => key)
              .join(' ')
