Files
NapCatQQ/.pnpm-store/v3/files/6c/e137d6b64a9e9171245edbd93f5f33da79c7df7c053930f0b4f8a7eb075a963a0360be5308e865489547ce9a8c3144d9452096e75c355c4811e01b2b415e49
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

47 lines
1.8 KiB
Plaintext

import $iYaQO$intlStringsmodulejs from "./intlStrings.mjs";
import $iYaQO$react from "react";
import {useLabels as $iYaQO$useLabels} from "@react-aria/utils";
import {useLocalizedStringFormatter as $iYaQO$useLocalizedStringFormatter} from "@react-aria/i18n";
import {VisuallyHidden as $iYaQO$VisuallyHidden} from "@react-aria/visually-hidden";
function $parcel$interopDefault(a) {
return a && a.__esModule ? a.default : a;
}
/*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
function $86ea4cb521eb2e37$export$2317d149ed6f78c4(props) {
let { onDismiss: onDismiss, ...otherProps } = props;
let stringFormatter = (0, $iYaQO$useLocalizedStringFormatter)((0, ($parcel$interopDefault($iYaQO$intlStringsmodulejs))), '@react-aria/overlays');
let labels = (0, $iYaQO$useLabels)(otherProps, stringFormatter.format('dismiss'));
let onClick = ()=>{
if (onDismiss) onDismiss();
};
return /*#__PURE__*/ (0, $iYaQO$react).createElement((0, $iYaQO$VisuallyHidden), null, /*#__PURE__*/ (0, $iYaQO$react).createElement("button", {
...labels,
tabIndex: -1,
onClick: onClick,
style: {
width: 1,
height: 1
}
}));
}
export {$86ea4cb521eb2e37$export$2317d149ed6f78c4 as DismissButton};
//# sourceMappingURL=DismissButton.module.js.map