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 : unknown;
type PrimitiveRefType = ExtractRefType<OverlayPropsPrimitive>  

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


