16 lines
276 B
TypeScript
16 lines
276 B
TypeScript
import { usePannelStore } from "_store/pannelStore";
|
|
|
|
export const OpenButton = () => {
|
|
const { setOpen } = usePannelStore();
|
|
return (
|
|
<button
|
|
onClick={() => {
|
|
setOpen(true);
|
|
}}
|
|
className="btn absolute inset-y-0 right-0 z-9999"
|
|
>
|
|
Open
|
|
</button>
|
|
);
|
|
};
|