LittleDemon WebShell


Linux webm007.cluster106.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Path : /home/eglisebaa/www/wp-content/plugins/code-snippets/js/components/common/
File Upload :
Command :
Current File : /home/eglisebaa/www/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<DismissibleNoticeProps> = ({ className, onDismiss, children }) =>
	<div id="message" className={classnames('notice fade is-dismissible', className)}>
		<>{children}</>

		<button type="button" className="notice-dismiss" onClick={event => {
			event.preventDefault()
			onDismiss()
		}}>
			<span className="screen-reader-text">{__('Dismiss notice.', 'code-snippets')}</span>
		</button>
	</div>

LittleDemon - FACEBOOK
[ KELUAR ]