Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

240 B
Raw Blame
export const useAttachmentIcon = (
  title: MaybeRefOrGetter<string | undefined>,
  mimetype: MaybeRefOrGetter<string | undefined>,
) => {
  return computed<keyof typeof iconMap>(() => {
    return getAttachmentIcon(title, mimetype)
  })
}