UNPKG

@smitch/fluid

Version:

A Next/React ui-component libray.

8 lines (7 loc) 645 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { Button } from '../..'; import { FaExpand, FaCompress } from 'react-icons/fa'; var FullscreenControl = function (fullscreen, onFullscreen, duration) { return (_jsx("div", { id: 'fullscreen', children: _jsxs(Button, { title: fullscreen ? 'Exit Fullscreen' : 'View Fullscreen', onClick: onFullscreen, btnBackground: 'transparent', btnColor: 'light', size: 'sm', disabled: duration === 0, children: [fullscreen ? _jsx(FaCompress, {}) : _jsx(FaExpand, {}), _jsx("span", { className: 'sr-only', children: "Toggle Fullscreen" })] }) })); }; export default FullscreenControl;