芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/optimyar/wp-content/plugins/code-snippets/js/components/common/DismissableNotice.tsx
import { __ } from '@wordpress/i18n' import classnames from 'classnames' import React from 'react' import type { ReactNode } from 'react' export interface DismissibleNoticeProps { className?: classnames.Argument onDismiss: VoidFunction children?: ReactNode } export const DismissibleNotice: React.FC
= ({ className, onDismiss, children }) =>
<>{children}>
{ event.preventDefault() onDismiss() }}>
{__('Dismiss notice.', 'code-snippets')}