plane/admin/components/common/toast.tsx

14 lines
318 B
TypeScript
Raw Normal View History

"use client";
2024-05-17 15:02:40 +00:00
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)} />;
};