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