mirror of
https://github.com/nicotsx/zerobyte.git
synced 2026-06-03 21:59:36 -04:00
* fix(deps): update bun minor and patch dependencies * fix: ci --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Nicolas Meienberger <github@thisprops.com>
25 lines
553 B
TypeScript
25 lines
553 B
TypeScript
import { useTheme } from "~/client/components/theme-provider";
|
|
import { Toaster as Sonner, type ToasterProps } from "sonner";
|
|
|
|
const Toaster = ({ ...props }: ToasterProps) => {
|
|
const { theme } = useTheme();
|
|
|
|
return (
|
|
<Sonner
|
|
theme={theme as ToasterProps["theme"]}
|
|
className="toaster group"
|
|
position="top-center"
|
|
style={
|
|
{
|
|
"--normal-bg": "var(--popover)",
|
|
"--normal-text": "var(--popover-foreground)",
|
|
"--normal-border": "var(--border)",
|
|
} as React.CSSProperties
|
|
}
|
|
{...props}
|
|
/>
|
|
);
|
|
};
|
|
|
|
export { Toaster };
|