import React, { useMemo } from 'react';
import { Button, Typography, Card, Tooltip, Tag, Avatar, Rating, Nav, Layout } from '../../index';
import { IconHelpCircle, IconUser, IconStar, IconSetting } from '@douyinfe/semi-icons';
import './index.scss';
export default {
  title: 'Base',
};
export { default as SemiA11y } from './a11y';
export const TestAlwaysDarkLight = () => {
  function Demo() {
    const { Text } = Typography;
    const { Header, Footer, Sider, Content } = Layout;
    const switchMode = () => {
      const body = document.body;
      if (body.hasAttribute('theme-mode')) {
        body.removeAttribute('theme-mode');
        // 通知官网更新当前模式,下同
        // window.setMode("light");
      } else {
        body.setAttribute('theme-mode', 'dark');
        // window.setMode("dark");
      }
    };
    const opts = {
      content: 'Hi, Bytedance dance dance',
      duration: 3,
    };
    const blocks = title => (