import { cn } from '@/utils';
import * as React from 'react';
import { BaseSeparator } from './BaseSeparator';
import styles from './Separator.module.css';

export interface SeparatorProps
  extends React.ComponentPropsWithoutRef<typeof BaseSeparator> {}

const Separator = React.forwardRef<
  React.ElementRef<typeof BaseSeparator>,
  SeparatorProps
>(({ className, ...props }, ref) => (
  <BaseSeparator
    ref={ref}
    className={cn(styles.Separator, className)}
    {...props}
  />
));

Separator.displayName = 'Separator';

export { Separator };
