import React, { useId } from 'react' import { __ } from '@wordpress/i18n' import { useSnippetForm } from '../../SnippetForm/WithSnippetFormContext' import { Tooltip } from '../../../common/Tooltip' export const PriorityInput = () => { const { snippet, isReadOnly, setSnippet } = useSnippetForm() const priorityId = useId() return (
{__('Snippets with a lower priority number will run before those with a higher number.', 'code-snippets')} setSnippet(previous => ({ ...previous, priority: parseInt(event.target.value, 10) }))} />
) }