'use client';

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

export type PlayButtonProps = ComponentProps<typeof MediaPlayButton>;

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