import { Form, Switch, type SwitchProps } from 'antd'; import React from 'react'; import styled from 'styled-components'; import LabelInfo from './components/label-info'; import Wrapper from './wrapper'; const Inner = styled.div` display: flex; align-items: center; justify-content: space-between; width: 100%; padding-inline: 14px; .ant-switch { margin-top: 0 !important; } `; interface SealSwitchProps extends SwitchProps { required?: boolean; label?: React.ReactNode; labelWidth?: number | string; description?: string; isInFormItems?: boolean; checkStatus?: 'success' | 'error' | 'warning' | ''; } const SealSlider: React.FC = (props) => { const { label, value, required, description, isInFormItems = true, defaultValue, checkStatus, labelWidth, size = 'small', ...rest } = props; let status = ''; if (isInFormItems) { const statusData = Form?.Item?.useStatus?.(); status = statusData?.status || ''; } const handleChange = (value: boolean, event: any) => { props.onChange?.(value, event); }; return ( ); }; export default SealSlider;