import { useRef } from 'react'; import classNames from 'classnames'; import { MdOutlineAutoAwesome } from 'react-icons/md'; import { Heading, View, Text, Flex } from '@aws-amplify/ui-react'; import { ThemeSwitcher } from '@/components/home/ThemeSwitcher'; import { HomeCTA } from '@/components/home/HomeCTA'; import { useIntersectionObserver } from '@/components/useIntersection'; import { trackScroll } from '@/utils/track'; export const ThemingSection = ({ colorMode, platform }) => { const ref = useRef(null); const entry = useIntersectionObserver(ref, { threshold: 0.125, freezeOnceVisible: true, }); const isVisible = !!entry?.isIntersecting; if (isVisible) { trackScroll('Home#Theming'); } return ( Theming controls to match your brand Create a unique look-and-feel for your application in minutes. Amplify UI uses design tokens and plain CSS so every detail can be customized. Dynamic theming for dark mode, responsive, and user preferences is easy with theme overrides. Learn more about theming ); };