shared?: boolean
on?: () => void
off?: () => void
+ onStyle?: string
+ offStyle?: string
}>()
const $emit = defineEmits(['clicked'])
})
const click = (): void => {
- if (props.shared) {
+ if (props.shared === true) {
for (const key in localStorage) {
if (key !== id && key.startsWith('shared-toggle-button-')) {
setToLocalStorage<boolean>(key, false)