import { Row, Col, Switch, Card, Space, Typography } from 'antd' import IonIcon from '@sentre/antd-ionicon' import { useRootDispatch, useRootSelector, RootDispatch, RootState, } from 'store' import { setTheme } from 'store/ui.reducer' const Theme = () => { const dispatch = useRootDispatch() const theme = useRootSelector((state: RootState) => state.ui.theme) const onSwitch = (checked: boolean) => dispatch(setTheme(checked ? 'dark' : 'light')) return ( Dark mode Reduce eye strain. ) } export default Theme