Core/demo/DemoCurtain.tsx

16 lines
326 B
TypeScript
Raw Normal View History

import React from "react";
import {useCurtain} from "../src/Components/Curtains/Curtains";
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>
);
}