2026-01-05 11:00:35 +00:00
|
|
|
import { Formik, Form } from "formik";
|
2026-01-09 16:16:28 +00:00
|
|
|
import type { CameraSettings } from "../../../../utils/types";
|
2026-01-05 11:00:35 +00:00
|
|
|
|
|
|
|
|
type CameraControlProps = {
|
2026-01-09 16:16:28 +00:00
|
|
|
state: CameraSettings;
|
2026-01-05 11:00:35 +00:00
|
|
|
};
|
|
|
|
|
|
2026-01-09 16:16:28 +00:00
|
|
|
const CameraControls = ({ state }: CameraControlProps) => {
|
|
|
|
|
console.log(state);
|
2026-01-05 11:00:35 +00:00
|
|
|
const initialValues = {};
|
|
|
|
|
|
|
|
|
|
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;
|