import type { ModalType } from '../../../stores/ui'
import type { JSX } from 'solid-js/jsx-runtime'

import { showModal } from '../../../stores/ui'

export default (props: { name: ModalType; children: JSX.Element }) => {
  return (
    <a href="#" onClick={() => showModal(props.name)}>
      {props.children}
    </a>
  )
}
