| 12345678910111213141516171819202122 |
- export const useConsultation = () => {
- const isConsultationOpen = useState('isConsultationOpen', () => false)
- const openConsultation = () => {
- isConsultationOpen.value = true
- }
- const closeConsultation = () => {
- isConsultationOpen.value = false
- }
- const toggleConsultation = () => {
- isConsultationOpen.value = !isConsultationOpen.value
- }
- return {
- isConsultationOpen,
- openConsultation,
- closeConsultation,
- toggleConsultation,
- }
- }
|