UNPKG

nice-ui

Version:

React design system, components, and utilities

20 lines (19 loc) 697 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommandPaletteFooter = void 0; const React = require("react"); const nano_theme_1 = require("nano-theme"); const height = 32; const blockClass = (0, nano_theme_1.rule)({ d: 'block', fl: `0 0 ${height}px`, h: `${height}px`, ai: 'center', pd: '0 24px', bxz: 'border-box', }); const CommandPaletteFooter = ({ bg, children }) => { const theme = (0, nano_theme_1.useTheme)(); return (React.createElement("div", { className: blockClass, style: { color: theme.g(0.4), background: bg ? theme.g(0, 0.04) : undefined } }, children)); }; exports.CommandPaletteFooter = CommandPaletteFooter;