chore: use formik

This commit is contained in:
Ibrahima G. Coulibaly
2024-06-21 20:24:00 +01:00
parent 2d30028775
commit acf1327d8d
2 changed files with 38 additions and 44 deletions

View File

@@ -0,0 +1,15 @@
import { Box, Stack, useTheme } from '@mui/material'
import SettingsIcon from '@mui/icons-material/Settings'
import Typography from '@mui/material/Typography'
import React, { ReactNode } from 'react'
export default function ToolOptions({ children }: { children: ReactNode }) {
const theme = useTheme()
return (<Box sx={{ mb: 2, borderRadius: 2, padding: 2, backgroundColor: theme.palette.background.default }} mt={2}>
<Stack direction={'row'} spacing={1} alignItems={'center'}>
<SettingsIcon />
<Typography fontSize={22}>Tool options</Typography>
</Stack>
{children}
</Box>)
}