import React from 'react';
import { Overlay as OverlayPrimitive, OverlayProps as OverlayPropsPrimitive } from '@modulz/primitives';

export type OverlayProps = OverlayPropsPrimitive

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

export const Overlay = React.forwardRef<PrimitiveRefType, OverlayProps>((props, ref) => {
  return (
    <OverlayPrimitive {...props} ref={ref}  styleConfig={{"base":{"overlay":{"normal":{"opacity":"30%","backgroundColor":"rgba(0, 0, 0, 1)"}}},"variants":{}}}/>
  );
});


