openreplay/frontend/app/components/ui/Checkbox/Checkbox.tsx
Андрей Бабушкин 47ad8499e8 fix conflicts
2025-03-06 17:42:14 +01:00

20 lines
492 B
TypeScript

import React from 'react';
import { Checkbox as AntCheckbox } from 'antd';
interface Props {
className?: string;
label?: string;
[x: string]: any;
}
export default function (props: Props) {
const { className = '', label = '', ...rest } = props;
return <AntCheckbox {...rest}>{label}</AntCheckbox>;
}
export default (props: Props) => {
const { className = '', label, ...rest } = props;
return (
<AntCheckbox {...rest}>
{label}
</AntCheckbox>
);
};