/** * @title with-scenery-theme */ import React, { useState } from 'react' import { Radio } from '@alicloud/console-components' import Page from '@alicloud/console-components-page' enum Theme { WHITE = 'white', GREY = 'grey', } const defaultSceneryTheme = Theme.WHITE const Example: React.FC<{}> = () => { const [theme, changeTheme] = useState(defaultSceneryTheme) return ( { changeTheme(newTheme as Theme) }} > {Theme.WHITE} {Theme.GREY} ) } export default Example