403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/inetpub/wwwroot/6pocketz/wp-content/plugins/code-snippets/js/components/common/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/inetpub/wwwroot/6pocketz/wp-content/plugins/code-snippets/js/components/common/SubmitButton.tsx
import React from 'react'
import classnames from 'classnames'
import { __ } from '@wordpress/i18n'
import type { InputHTMLAttributes } from 'react'

export interface SubmitButtonProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'id' | 'name' | 'value'> {
	id?: string
	name?: string
	primary?: boolean
	small?: boolean
	large?: boolean
	wrap?: boolean
	text?: string
}

export const SubmitButton: React.FC<SubmitButtonProps> = ({
	id,
	text,
	name = 'submit',
	primary,
	small,
	large,
	wrap,
	className,
	...inputProps
}) => {
	const button =
		<input
			id={id ?? name}
			type="submit"
			name={name}
			value={text ?? __('Save Changes', 'code-snippets')}
			className={classnames(
				'button',
				{
					'button-primary': primary,
					'button-small': small,
					'button-large': large
				},
				className
			)}
			{...inputProps}
		/>

	return wrap ? <p className="submit">{button}</p> : button
}

Youez - 2016 - github.com/yon3zu
LinuXploit