mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
d3556f457b
* chore: use client directive * chore: use client directive
14 lines
318 B
TypeScript
14 lines
318 B
TypeScript
"use client";
|
|
|
|
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)} />;
|
|
};
|