/* ============ Settings ============ */
function Settings() {
const { settings, clients, signings, mileage } = useStore();
const toast = useToast();
const set = (patch) => Store.Settings.update(patch);
const resetAll = () => {
if (confirm('Reset ALL data and settings to defaults? This cannot be undone.')) {
Store.resetAll();
toast('Data reset');
}
};
const clearStorage = () => {
if (confirm('Permanently delete all data from this device?')) {
localStorage.removeItem('notaryStudio.v1');
localStorage.removeItem('notaryData');
location.reload();
}
};
return (
{settings.businessName || 'Middlesex Notary Co'}
{settings.notaryName || 'Add notary name below'} · {settings.state || '—'}
Autosave on
Daily backups
set({ defaultFee: parseFloat(e.target.value)||0 })}/>
set({ mileageRate: parseFloat(e.target.value)||0 })}/>
Current IRS standard for business mileage is $0.670/mi. Update annually.
{[
{ id: 'navy', color: '#1F3A66' },
{ id: 'blue', color: '#007AFF' },
{ id: 'indigo', color: '#5856D6' },
{ id: 'purple', color: '#AF52DE' },
{ id: 'pink', color: '#FF2D55' },
{ id: 'orange', color: '#FF9500' },
{ id: 'green', color: '#34C759' },
].map(a => (
Notary Studio · Everything autosaves to this browser's local storage. Use Reports → Backup to export an offline copy.
);
}
window.Settings = Settings;