import { useState, useEffect } from 'react';
export default function usePanelDate(defaultPanelDate) {
    var _a = useState(defaultPanelDate), panelDate = _a[0], setPanelDate = _a[1];
    useEffect(function () {
        setPanelDate(defaultPanelDate);
    }, [defaultPanelDate]);
    return { panelDate: panelDate, setPanelDate: setPanelDate };
}
