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","marginRight":"12px","height":"24px","backgroundColor":"hsl(240, 10%, 90%)","marginBottom":"0","width":"1px","marginLeft":"12px"}}},"variants":{}}}/>
  );
});


