Update website and @ffmpeg/util

This commit is contained in:
Jerome Wu
2022-10-06 20:52:39 +08:00
parent a40571f1b9
commit cf7f537bd8
14 changed files with 549 additions and 52 deletions

View File

@@ -0,0 +1,20 @@
import React from "react";
import { useColorMode } from "@docusaurus/theme-common";
import { ThemeProvider, createTheme } from "@mui/material/styles";
const lightTheme = createTheme({});
const darkTheme = createTheme({
palette: {
mode: "dark",
},
});
export default function MuiThemeProvider(props: any) {
const { colorMode } = useColorMode();
return (
<ThemeProvider
theme={colorMode === "dark" ? darkTheme : lightTheme}
{...props}
/>
);
}