# code-snippets/3.5.0/js/Edit/fields/MultisiteSharingSettings.tsx

Code Snippets, version 3.5.0. 21 lines.

- Page: https://pluginprobe.com/plugins/code-snippets/3.5.0/code/js/Edit/fields/MultisiteSharingSettings.tsx
- Raw: https://pluginprobe.com/plugins/code-snippets/3.5.0/raw/js/Edit/fields/MultisiteSharingSettings.tsx
- Modified: 2023-05-19T19:35:06+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/code-snippets/3.5.0/code/js/Edit/fields/MultisiteSharingSettings.tsx#L10-L20`.

```tsx
import React from 'react'
import { __ } from '@wordpress/i18n'
import { SnippetInputProps } from '../../types/SnippetInputProps'

export const MultisiteSharingSettings: React.FC<SnippetInputProps> = ({ snippet, setSnippet, isReadOnly }) =>
	<>
		<h2 className="screen-reader-text">{__('Sharing Settings', 'code-snippets')}</h2>
		<p className="snippet-sharing-setting">
			<label htmlFor="snippet_sharing">
				<input
					type="checkbox"
					name="snippet_sharing"
					checked={!!snippet.shared_network}
					disabled={isReadOnly}
					onChange={event => setSnippet(previous => ({ ...previous, shared_network: event.target.checked }))}
				/>
				{__('Allow this snippet to be activated on individual sites on the network', 'code-snippets')}
			</label>
		</p>
	</>

```
