// FontSizeSetting.tsx import React from 'react'; interface FontSizeSettingProps { fontSize: string; // The current font size setFontSize: (newSize: string) => void; // Function to update the font size } const FontSizeSetting: React.FC = ({ fontSize, setFontSize }) => { const handleFontSizeChange = (e: React.ChangeEvent) => { const newSize = `${e.target.value}px`; setFontSize(newSize); document.documentElement.style.setProperty('--font-size', newSize); }; return (

Font Size

{fontSize}
); }; export default FontSizeSetting;