UNPKG

use-theme-editor

Version:

Zero configuration CSS variables based theme editor

19 lines (17 loc) 565 B
import React from "react"; import { use } from "../../state"; import { TextControl } from "../controls/TextControl"; export function RemoveAnnoyingPrefix() { const [annoyingPrefix, setAnnoyingPrefix] = use.annoyingPrefix(); return <TextControl placeholder='Remove annoying prefix' title='Remove annoying prefix' value={annoyingPrefix} onChange={setAnnoyingPrefix} style={{ textDecoration: 'line-through', textDecorationColor: 'grey', textDecorationThickness: '1px', }} />; }