mirror of
https://github.com/makeplane/plane.git
synced 2025-12-25 08:09:33 +01:00
* refactor: edition specific migration * revert: pagination from space endpoints * fix: project publish --------- Co-authored-by: pablohashescobar <nikhilschacko@gmail.com>
21 lines
442 B
TypeScript
21 lines
442 B
TypeScript
"use client";
|
|
|
|
import { ReactNode } from "react";
|
|
import { useTheme } from "next-themes"
|
|
// ui
|
|
import { Toast } from "@plane/ui";
|
|
// helpers
|
|
import { resolveGeneralTheme } from "@/helpers/common.helper";
|
|
|
|
export const ToastProvider = ({ children }: { children: ReactNode }) => {
|
|
// themes
|
|
const { resolvedTheme } = useTheme();
|
|
|
|
return (
|
|
<>
|
|
<Toast theme={resolveGeneralTheme(resolvedTheme)} />
|
|
{children}
|
|
</>
|
|
);
|
|
};
|