'use client';

import { MediaPipButton } from 'media-chrome/react';
import { cn } from '@djangocfg/ui-core/lib';
import type { ComponentProps } from 'react';

export type PipProps = ComponentProps<typeof MediaPipButton>;

export function Pip({ className, ...props }: PipProps) {
  return (
    <MediaPipButton
      {...props}
      className={cn(
        'media-control-square video-player__control h-8 w-8',
        className,
      )}
    />
  );
}
