UNPKG

@seasketch/geoprocessing

Version:

Geoprocessing and reporting framework for SeaSketch 2.0

9 lines 483 B
import React from "react"; import { useLanguage } from "../../hooks/index.js"; /** Controls text direction for report based on current language */ export const ReportTextDirection = ({ style, children }) => { // eslint-disable-next-line @typescript-eslint/no-unused-vars const [language, changeLanguage, isRtl] = useLanguage(); return (React.createElement("div", { style: style, dir: isRtl ? "rtl" : "ltr" }, children)); }; //# sourceMappingURL=ReportTextDirection.js.map