feat. sns 버튼 컴포넌트 제작

This commit is contained in:
clkim
2025-10-30 19:56:02 +09:00
parent db9f3094fd
commit 6763d353c3
4 changed files with 80 additions and 4 deletions

View File

@@ -95,13 +95,32 @@ export const useModalStore = defineStore('modalStore', () => {
scrollStore.controlScrollLock(false)
}
// toast ------------------
const toast = {
storeIsOpen: ref(false),
storeContentText: ref(''),
}
const handleOpenToast = (contentText: string) => {
toast.storeIsOpen.value = true
toast.storeContentText.value = contentText
}
const handleCloseToast = () => {
toast.storeIsOpen.value = false
toast.storeContentText.value = ''
}
return {
alert,
confirm,
youtube,
toast,
handleOpenAlert,
handleOpenConfirm,
handleOpenYoutube,
handleResetYoutube,
handleOpenToast,
handleCloseToast,
}
})