'use client'; import { MediaFullscreenButton } from 'media-chrome/react'; import { cn } from '@djangocfg/ui-core/lib'; import { Tooltip, TooltipContent, TooltipTrigger, } from '@djangocfg/ui-core/components'; import type { ComponentProps, ReactNode } from 'react'; export type FullscreenProps = ComponentProps & { /** Tooltip copy. Defaults to `"Fullscreen"`. Pass `false` to opt out. */ readonly label?: ReactNode | false; }; export function Fullscreen({ className, label, ...props }: FullscreenProps) { const button = ( ); if (label === false) return button; return ( {button} {label ?? 'Fullscreen'} ); }