custom OptionsSection label

Signed-off-by: FTCHD <144691102+FTCHD@users.noreply.github.com>
This commit is contained in:
FTCHD
2025-12-15 00:04:04 +07:00
parent 01ded931b3
commit 576fc11f2a
+3 -1
View File
@@ -4,6 +4,7 @@ import { startTransition, useCallback, useEffect, useState } from 'react'
import { replaceSmartQuotes } from '../../lib/format'
export default function OptionsSection({
label,
optionsJson,
setOptionsJson,
globalOptions,
@@ -11,6 +12,7 @@ export default function OptionsSection({
isLocked,
setIsLocked,
}: {
label?: string
optionsJson: string
setOptionsJson: (value: string) => void
globalOptions: Record<string, unknown>
@@ -47,7 +49,7 @@ export default function OptionsSection({
'base': 'w-1/2',
inputWrapper: '!h-full !ring-0 !outline-offset-0 !outline-0',
}}
label="Custom Options"
label={label || 'Custom Options'}
description="Tap an option to add it. Scroll to see more. Hover to see details."
value={optionsJson}
onValueChange={(value) => {