This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { useMemo, useState, useEffect } from "react"; | |
| import { Download, Copy, Plus, Trash2, Target, BookOpen, Gauge, Settings, Upload, Timer, Ruler, Info } from "lucide-react"; | |
| // --- Utils --- | |
| const clamp = (n, min, max) => Math.max(min, Math.min(max, n)); | |
| const pct = (n) => `${(+n).toFixed(n % 1 ? 1 : 0)}%`; | |
| function readingTime(text) { | |
| const words = (text.match(/\b\w+\b/gu) || []).length; | |
| const minutes = Math.max(1, Math.round(words / 200)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { useMemo, useState, useEffect } from "react"; | |
| import { Download, Copy, Plus, Trash2, Target, BookOpen, Gauge, Settings, Upload, Timer, Ruler, Info } from "lucide-react"; | |
| // --- Utils --- | |
| const clamp = (n, min, max) => Math.max(min, Math.min(max, n)); | |
| const pct = (n) => `${(+n).toFixed(n % 1 ? 1 : 0)}%`; | |
| function readingTime(text) { | |
| const words = (text.match(/\b\w+\b/gu) || []).length; | |
| const minutes = Math.max(1, Math.round(words / 200)); |