30 lines
477 B
TypeScript
30 lines
477 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: "default",
|
|
})
|
|
}
|
|
>
|
|
Toast
|
|
</Button>
|
|
);
|
|
}
|
|
|
|
export function Normal() {
|
|
return (
|
|
<>
|
|
<Toaster />
|
|
<Children />
|
|
</>
|
|
);
|
|
}
|