import { translationAtom } from "@/atoms/translations-atom"; import { useAtomValue } from "jotai"; type CompressionInputProps = { compression: number; handleCompressionChange: (arg: any) => void; }; export function InputCompression({ compression, handleCompressionChange, }: CompressionInputProps) { const t = useAtomValue(translationAtom); return (
{t("SETTINGS.IMAGE_COMPRESSION.TITLE", { compression: compression.toString(), })}
{t("SETTINGS.IMAGE_COMPRESSION.DESCRIPTION")}
)}