import { useState } from 'react'; import { RtFrame, RtFrameLayers } from '@dpa/react-frame-intro'; import { RtText } from '@dpa/react-text'; function Selector({ onMode, onTheme, onAchr, mode, theme, achr }) { const modes = ['base', 'mono', 'filling', 'coloring']; const themes = ['light', 'dark']; const ahcromatics = ['inverted', 'non-inverted']; return (
{/**/}
); } export function DemoPage() { const [first, setFirst] = useState({ modifier: 'base', theme: 'light', achromatic: 'non-inverted', }); const [second, setSecond] = useState({ modifier: 'mono', theme: 'dark', achromatic: 'non-inverted', }); const [third, setThird] = useState({ modifier: 'filling', theme: 'light', achromatic: 'inverted', }); return ( First Layer setFirst((s) => ({ ...s, modifier: v }))} onAchr={(v: any) => setFirst((s) => ({ ...s, achromatic: v }))} onTheme={(v: any) => setFirst((s) => ({ ...s, theme: v }))} /> Second Layer setSecond((s) => ({ ...s, modifier: v }))} onAchr={(v: any) => setSecond((s) => ({ ...s, achromatic: v }))} onTheme={(v: any) => setSecond((s) => ({ ...s, theme: v }))} /> Third Layer setThird((s) => ({ ...s, modifier: v }))} onAchr={(v: any) => setThird((s) => ({ ...s, achromatic: v }))} onTheme={(v: any) => setThird((s) => ({ ...s, theme: v }))} /> ); }