diff --git a/src/components/Settings/ZapSettings.tsx b/src/components/Settings/ZapSettings.tsx index 23df158d..7e86a3d1 100644 --- a/src/components/Settings/ZapSettings.tsx +++ b/src/components/Settings/ZapSettings.tsx @@ -17,6 +17,19 @@ const ZapSettings: React.FC = ({ settings, onUpdate }) => { const borisPercentage = totalWeight > 0 ? (borisWeight / totalWeight) * 100 : 0 const authorPercentage = totalWeight > 0 ? (authorWeight / totalWeight) * 100 : 0 + const presets = { + default: { highlighter: 50, boris: 2.1, author: 50 }, + generous: { highlighter: 5, boris: 10, author: 75 }, + selfless: { highlighter: 1, boris: 19, author: 80 }, + boris: { highlighter: 10, boris: 80, author: 10 }, + } + + const isPresetActive = (preset: { highlighter: number; boris: number; author: number }) => { + return highlighterWeight === preset.highlighter && + borisWeight === preset.boris && + authorWeight === preset.author + } + const applyPreset = (preset: { highlighter: number; boris: number; author: number }) => { onUpdate({ zapSplitHighlighterWeight: preset.highlighter, @@ -33,29 +46,29 @@ const ZapSettings: React.FC = ({ settings, onUpdate }) => {