import { defineComponent, PropType, ref } from 'vue' import { ToggleOpen } from '@/types' // import './Launcher.scss' interface LauncherApp { name: string; img: JSX.Element; } type LauncherApps = Array export const Launcher = defineComponent({ props: { open: { type: Boolean, required: true, }, toggleOpen: { type: Function as PropType, required: true, }, }, setup: props => { return () => (
props.toggleOpen('launcher')} > application-launcher {props.open && (
)}
) } })