Replace i18next with next-intl for translations and dynamic imports. Refactor System API calls to use os.platform() for accurate platform detection. Simplify and clean up dependencies in package.json.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import {faSearch} from "@fortawesome/free-solid-svg-icons";
|
||||
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
|
||||
import {ChangeEvent, Dispatch, SetStateAction} from "react";
|
||||
import {t} from "i18next";
|
||||
import {useTranslations} from "next-intl";
|
||||
import TextInput from "@/components/form/TextInput";
|
||||
|
||||
export default function SearchBook(
|
||||
@@ -12,6 +12,7 @@ export default function SearchBook(
|
||||
searchQuery: string;
|
||||
setSearchQuery: Dispatch<SetStateAction<string>>
|
||||
}) {
|
||||
const t = useTranslations();
|
||||
|
||||
return (
|
||||
<div className="flex items-center relative my-5 w-full max-w-3xl">
|
||||
|
||||
Reference in New Issue
Block a user