* draft: implementation * chore: migrated toast from @plane/ui to propel package * chore: reverted unwanted changes * fix: lint errors * chore: added dismiss toast to propel toast * fix: build and lint errors * chore: code refactor --------- Co-authored-by: Anmol Singh Bhatia <anmolsinghbhatia@plane.so>
10 lines
297 B
TypeScript
10 lines
297 B
TypeScript
"use client";
|
|
|
|
import { useTheme } from "next-themes";
|
|
import { Toast } from "@plane/propel/toast";
|
|
import { resolveGeneralTheme } from "@plane/utils";
|
|
|
|
export const ToastWithTheme = () => {
|
|
const { resolvedTheme } = useTheme();
|
|
return <Toast theme={resolveGeneralTheme(resolvedTheme)} />;
|
|
};
|