Core/demo/DemoCurtain.tsx
2024-07-14 17:47:29 +02:00

15 lines
333 B
TypeScript

import React from "react";
import {useCurtain} from "../src/Components/Curtains/CurtainInstance";
import {X} from "@phosphor-icons/react";
/**
* Demo curtain component.
*/
export function DemoCurtain()
{
const {close} = useCurtain();
return (
<button className={"close"} onClick={close}><X/> Close the curtain</button>
);
}