lossless-cut/src/renderer/src/components/MovFastStartButton.jsx

17 wiersze
404 B
React
Czysty Zwykły widok Historia

2024-02-20 14:51:33 +00:00
import { memo } from 'react';
2020-12-11 22:43:32 +00:00
import { withBlur } from '../util';
import useUserSettings from '../hooks/useUserSettings';
2023-03-10 07:08:58 +00:00
import Switch from './Switch';
2020-12-11 22:43:32 +00:00
const MovFastStartButton = memo(() => {
const { movFastStart, toggleMovFastStart } = useUserSettings();
2020-12-11 22:43:32 +00:00
return (
2023-03-10 07:08:58 +00:00
<Switch checked={movFastStart} onCheckedChange={withBlur(toggleMovFastStart)} />
2020-12-11 22:43:32 +00:00
);
});
export default MovFastStartButton;