Construct.tsx 973 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import { ModelSvg } from '@/components/icons';
  2. import Icon, {
  3. AppstoreOutlined,
  4. BuildOutlined,
  5. ConsoleSqlOutlined,
  6. ForkOutlined,
  7. MessageOutlined,
  8. PartitionOutlined,
  9. } from '@ant-design/icons';
  10. import { ConfigProvider } from 'antd';
  11. import { t } from 'i18next';
  12. import { useRouter } from 'next/router';
  13. import React from 'react';
  14. import './style.css';
  15. function ConstructLayout({ children }: { children: React.ReactNode }) {
  16. return (
  17. <div className='flex flex-col h-full w-full dark:bg-gradient-dark bg-gradient-light bg-cover bg-center'>
  18. <div></div>
  19. <ConfigProvider
  20. theme={{
  21. components: {
  22. Button: {
  23. // defaultBorderColor: 'white',
  24. },
  25. Segmented: {
  26. itemSelectedBg: '#2867f5',
  27. itemSelectedColor: 'white',
  28. },
  29. },
  30. }}
  31. >
  32. {children}
  33. </ConfigProvider>
  34. </div>
  35. );
  36. }
  37. export default ConstructLayout;