1
0
Fork 0

feat(org): Ported components to mjs and named exports

This commit is contained in:
joostdecock 2023-01-29 16:44:02 +01:00
parent 37f7833983
commit 595417a23b
118 changed files with 836 additions and 852 deletions

View file

@ -0,0 +1,18 @@
import { useTranslation } from 'next-i18next'
// FIXME: I feel this should be kept closer to where it's used
export const ResetButtons = ({ resetGist, undoGist }) => {
const { t } = useTranslation(['app'])
return (
<div className="flex flex-row gap-4 my-4">
<button className="btn btn-primary" onClick={undoGist}>
{t('undo')}
</button>
<button className="btn btn-primary" onClick={resetGist}>
{t('reset_all')}
</button>
</div>
)
}