30 lines
478 B
TypeScript

import { Button } from "@components/Button";
import { Toaster, useToast } from "@components/Toast";
function Children() {
const { toast } = useToast();
return (
<Button
onClick={() =>
toast({
title: "Toast Title",
description: "Toast Description",
status: "warning",
})
}
>
Toast
</Button>
);
}
export function Warning() {
return (
<>
<Toaster />
<Children />
</>
);
}