mirror of
https://gh.wpcy.net/https://github.com/elementor/one-click-accessibility.git
synced 2026-04-21 08:52:46 +08:00
19 lines
303 B
JavaScript
19 lines
303 B
JavaScript
import { useState } from '@wordpress/element';
|
|
|
|
export const useWhatsNew = () => {
|
|
const [isSidebarOpen, setIsSidebarOpen] = useState(false);
|
|
|
|
const open = () => {
|
|
setIsSidebarOpen(true);
|
|
};
|
|
|
|
const close = () => {
|
|
setIsSidebarOpen(false);
|
|
};
|
|
|
|
return {
|
|
isSidebarOpen,
|
|
open,
|
|
close,
|
|
};
|
|
};
|