'use client';

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

export type FullscreenProps = ComponentProps<typeof MediaFullscreenButton>;

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