mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
12 lines
303 B
TypeScript
12 lines
303 B
TypeScript
import { useTheme } from "next-themes";
|
|
// ui
|
|
import { Toast as ToastComponent } from "@plane/ui";
|
|
// helpers
|
|
import { resolveGeneralTheme } from "@/helpers/common.helper";
|
|
|
|
export const Toast = () => {
|
|
const { theme } = useTheme();
|
|
|
|
return <ToastComponent theme={resolveGeneralTheme(theme)} />;
|
|
};
|