import { BarGraphHorizontal, BarGraphVertical } from "components/BarGraph"; import { mockCategoricalData, moreMockCategoricalData } from "data/mocks"; import React from "react"; import { useWindowDimensions } from "utils/getWindowDimensions"; import { useIsMobile } from "utils/isMobile"; import { BottomNav } from "@/components/BottomNav"; import { ComponentWrapper } from "@/components/ComponentWrapper"; import { WordCloud } from "../components/WordCloud"; import styles from "./samplePage.module.css"; export default function SamplePage() { const { width } = useWindowDimensions(); const isMobile = useIsMobile(); return (
({ text: word.key, value: word.value, }))} // For components that we don't want to match the width necessarily we can provide direct values width={isMobile ? width / 1.5 : 800} height={500} /> ({ text: word.key, value: word.value, }))} width={isMobile ? width / 1.5 : width / 2} height={500} />
); }