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 { Document } from "flexsearch"; | |
| import { useEffect, useMemo, useState } from "react"; | |
| export const useSearch = <T extends { id: string }>( | |
| index: Document<T>, | |
| data: T[] | |
| ) => { | |
| const [searchQuery, setSearchQuery] = useState<string>(); | |
| const [results, setResults] = useState<T[]>([]); |
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
| <?PHP | |
| class paginar { | |
| private $text; | |
| private $configure = '1-2'; # 0 = Parrafos 1 = Oraciones 1-X = X numeros de oraciones 1-X = X numeros de parrafos | |
| private $error; | |
| private $actually; | |
| private $separator; | |
| public function __construct($text, $configure) { | |
| $this->text = htmlentities($text); | |
| $this->actually = (isset($_GET['page']) ? (is_numeric($_GET['page']) ? stripslashes($_GET['page']) : 0) : 0); |