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

13 lines
665 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;
return useAntdStyle('ProLayoutPageContainerStylish', function (token) {
var stylishToken = _objectSpread(_objectSpread({}, token), {}, {
componentCls: ".".concat(prefixCls)
});
if (!stylish) return [];
return [_defineProperty({}, "div".concat(stylishToken.componentCls), stylish === null || stylish === void 0 ? void 0 : stylish(stylishToken))];
});
}