feat(org): Ported components to mjs and named exports
This commit is contained in:
parent
37f7833983
commit
595417a23b
118 changed files with 836 additions and 852 deletions
18
sites/shared/components/error/reset-buttons.mjs
Normal file
18
sites/shared/components/error/reset-buttons.mjs
Normal 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>
|
||||
)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue