mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-12 07:36:42 +08:00
21 lines
455 B
TypeScript
21 lines
455 B
TypeScript
import {
|
|
DateRange as ReactDateRange,
|
|
type DateRangeProps,
|
|
type Range,
|
|
} from 'react-date-range';
|
|
import { useTheme } from '../theme';
|
|
|
|
export { DateRangeProps, Range };
|
|
|
|
export const DateRange = (props: DateRangeProps) => {
|
|
const theme = useTheme();
|
|
|
|
return (
|
|
<ReactDateRange
|
|
color={theme.affine.palette.primary}
|
|
rangeColors={[theme.affine.palette.primary]}
|
|
{...props}
|
|
/>
|
|
);
|
|
};
|