|
1 | | -import { type CSSProperties, type PropsWithChildren } from 'react'; |
| 1 | +import { type CSSProperties, type FC, type PropsWithChildren } from 'react'; |
2 | 2 |
|
3 | | -import type { DualScrollSync } from './DualScrollSync'; |
4 | | -import type { DualScrollSyncContent } from './DualScrollSyncContent'; |
5 | | -import type { DualScrollSyncContentSection } from './DualScrollSyncContentSection'; |
6 | | -import type { DualScrollSyncLabel } from './DualScrollSyncLabel'; |
7 | | -import type { DualScrollSyncNav } from './DualScrollSyncNav'; |
8 | | -import type { DualScrollSyncNavItem } from './DualScrollSyncNavItem'; |
| 3 | +import type { DualScrollSyncContentProps } from './DualScrollSyncContent'; |
| 4 | +import type { DualScrollSyncContentSectionProps } from './DualScrollSyncContentSection'; |
| 5 | +import type { DualScrollSyncLabelProps } from './DualScrollSyncLabel'; |
| 6 | +import type { DualScrollSyncNavProps } from './DualScrollSyncNav'; |
| 7 | +import type { DualScrollSyncNavItemProps } from './DualScrollSyncNavItem'; |
9 | 8 |
|
10 | 9 | export type DualScrollSyncStyleProps = { |
11 | 10 | className?: string; |
@@ -44,10 +43,10 @@ export type DualScrollSyncProps = PropsWithChildren<{ |
44 | 43 | onItemClick?: (activeKey: string) => void; |
45 | 44 | }>; |
46 | 45 |
|
47 | | -export type DualScrollSyncType = typeof DualScrollSync & { |
48 | | - Nav: typeof DualScrollSyncNav; |
49 | | - NavItem: typeof DualScrollSyncNavItem; |
50 | | - Content: typeof DualScrollSyncContent; |
51 | | - ContentSection: typeof DualScrollSyncContentSection; |
52 | | - Label: typeof DualScrollSyncLabel; |
| 46 | +export type DualScrollSyncType = FC<DualScrollSyncProps> & { |
| 47 | + Nav: FC<DualScrollSyncNavProps>; |
| 48 | + NavItem: FC<DualScrollSyncNavItemProps>; |
| 49 | + Content: FC<DualScrollSyncContentProps>; |
| 50 | + ContentSection: FC<DualScrollSyncContentSectionProps>; |
| 51 | + Label: FC<DualScrollSyncLabelProps>; |
53 | 52 | }; |
0 commit comments