import React, { useState } from "react"; import { useThemeHooks } from '@redocly/theme/core/hooks'; import mapDark from "../static/js/impact/mapDark.json"; import mapLight from "../static/js/impact/mapLight.json"; import { useLottie } from "lottie-react"; import { useThemeFromClassList } from "../@theme/helpers"; import { Link } from "@redocly/theme/components/Link/Link"; export const frontmatter = { seo: { title: "Impact", description: "Learn how the XRP Ledger helps move money around the world faster, cheaper and more sustainably than any other currency available today.", }, }; export default function Impact() { const theme = useThemeFromClassList(["dark", "light"]); const [videoVisible, setVideoVisible] = useState(false); // State to control visibility const { useTranslate } = useThemeHooks(); const { translate } = useTranslate(); const handleVideoClick = () => { setVideoVisible(true); // Show the iframe }; const options = React.useMemo(() => { return { animationData: theme === "dark" ? mapDark : mapLight, loop: true, }; }, [theme]); const { View } = useLottie(options); return (
purple waves

{translate("Today’s Value, Tomorrow’s Vision")}

{translate("XRPL Today, XRPL Tomorrow")}
green waves
{/* World map */}
{translate("Building for the Future")}

{translate("Consensus protocol is efficient and sustainable")}

{translate( "For more than 272 million migrants worldwide, sending and receiving money across borders is expensive, unreliable and complex." )}

{`${translate( "about.impact.feature.ppart1", "Open and decentralized, blockchain and crypto are seeing an increase in adoption across the financial services industry, from retail and institutional investment to " )}`} {translate("about.impact.feature.ppart2", "commercial use cases ")} {`${translate("about.impact.feature.ppart3", "like CBDCs, NFTs, and cross-border payments.")}`}

{/* Large */}
{View}
{/* Video sidebar */}