26 lines
586 B
TypeScript
26 lines
586 B
TypeScript
|
|
import { Formik, Form } from "formik";
|
||
|
|
|
||
|
|
type CameraControlProps = {
|
||
|
|
tabIndex: number;
|
||
|
|
};
|
||
|
|
|
||
|
|
const CameraControls = ({ tabIndex }: CameraControlProps) => {
|
||
|
|
const initialValues = {};
|
||
|
|
|
||
|
|
console.log(tabIndex);
|
||
|
|
const handleSumbit = (values: { test?: string }) => {
|
||
|
|
console.log(values);
|
||
|
|
};
|
||
|
|
return (
|
||
|
|
<Formik initialValues={initialValues} onSubmit={handleSumbit}>
|
||
|
|
<Form>
|
||
|
|
<button type="submit" className="p-3 bg-green-700 hover:bg-green-900 rounded-md">
|
||
|
|
Save Settings
|
||
|
|
</button>
|
||
|
|
</Form>
|
||
|
|
</Formik>
|
||
|
|
);
|
||
|
|
};
|
||
|
|
|
||
|
|
export default CameraControls;
|