// A perceptual theme generator
import { useState, useEffect } from 'react';

function ThemePreview({ baseColor }) {
  const [theme, setTheme] = useState({});

  useEffect(() => {
    const newTheme = generatePalette(baseColor);
    setTheme(newTheme);
  }, [baseColor]);

  return (
    <div className="preview">
      <h1>Hello World</h1>
      {/* Render code here */}
    </div>
  );
}

export default ThemePreview;