2024-07-14 15:37:12 +02:00
|
|
|
import React from "react";
|
2024-07-14 17:34:34 +02:00
|
|
|
import {useCurtain} from "../src/Components/Curtains/CurtainInstance";
|
2024-07-14 15:37:12 +02:00
|
|
|
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>
|
|
|
|
);
|
|
|
|
}
|