import React from 'react';
import { Pipe as PipePrimitive, PipeProps as PipePropsPrimitive } from '@modulz/primitives';

export type PipeProps = PipePropsPrimitive

type ExtractRefType<TypesThatMayContainReactRef> = TypesThatMayContainReactRef extends {ref?: React.Ref<infer T>} ? T : unknown;
type PrimitiveRefType = ExtractRefType<PipePropsPrimitive>  

export const Pipe = React.forwardRef<PrimitiveRefType, PipeProps>((props, ref) => {
  return (
    <PipePrimitive {...props} ref={ref}  styleConfig={{"base":{"pipe":{"normal":{"marginTop":"0","height":"16px","width":"1px","marginRight":"8px","marginLeft":"8px","backgroundColor":"rgba(128, 128, 128, 1)","marginBottom":"0"}}},"variants":{}}}/>
  );
});


