1
0
ohmyform/ui/components/omf.tsx
Michael Schramm 9c4c325e5a
Switch to single branch (#221)
* remove submodules
* add api and ui files
* update github actions
* use sparse checkout
* update node setup
* update checkout
* update docker
* change permissions
* update mariadb health check
* update changelog
2023-12-02 19:22:40 +01:00

19 lines
475 B
TypeScript

import React from 'react'
import { useSettingsQuery } from '../graphql/query/settings.query'
import scss from './omf.module.scss'
export const Omf: React.FC = () => {
const { data, loading } = useSettingsQuery()
if (loading || (data && data.hideContrib.value)) {
return null
}
return (
<a className={scss.badge} href="https://ohmyform.com" target={'_blank'} rel={'noreferrer'}>
<span>OhMyForm</span>
<span>Fork & Support!</span>
</a>
)
}