Files
copilot-toolbox-template-123/node_modules/@ant-design/pro-layout/es/components/Header/style/stylish.js
2026-01-09 14:52:46 +00:00

15 lines
841 B
JavaScript

import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
import { useStyle as useAntdStyle } from '@ant-design/pro-provider';
export function useStylish(prefixCls, _ref) {
var stylish = _ref.stylish,
proLayoutCollapsedWidth = _ref.proLayoutCollapsedWidth;
return useAntdStyle('ProLayoutHeaderStylish', function (token) {
var stylishToken = _objectSpread(_objectSpread({}, token), {}, {
componentCls: ".".concat(prefixCls),
proLayoutCollapsedWidth: proLayoutCollapsedWidth
});
if (!stylish) return [];
return [_defineProperty({}, "div".concat(token.proComponentsCls, "-layout"), _defineProperty({}, "".concat(stylishToken.componentCls), stylish === null || stylish === void 0 ? void 0 : stylish(stylishToken)))];
});
}