2022-04-19 16:44:47 +08:00
|
|
|
import InternalAnchor from './Anchor';
|
2016-10-28 14:02:55 +08:00
|
|
|
import AnchorLink from './AnchorLink';
|
|
|
|
|
2017-09-25 22:14:49 +08:00
|
|
|
export { AnchorProps } from './Anchor';
|
|
|
|
export { AnchorLinkProps } from './AnchorLink';
|
|
|
|
|
2022-04-19 16:44:47 +08:00
|
|
|
type InternalAnchorType = typeof InternalAnchor;
|
|
|
|
|
2023-01-03 11:46:48 +08:00
|
|
|
type CompoundedComponent = InternalAnchorType & {
|
2022-04-19 16:44:47 +08:00
|
|
|
Link: typeof AnchorLink;
|
2023-01-03 11:46:48 +08:00
|
|
|
};
|
2022-04-19 16:44:47 +08:00
|
|
|
|
2023-01-03 11:46:48 +08:00
|
|
|
const Anchor = InternalAnchor as CompoundedComponent;
|
2022-04-19 16:44:47 +08:00
|
|
|
|
2017-07-18 18:04:48 +08:00
|
|
|
Anchor.Link = AnchorLink;
|
|
|
|
export default Anchor;
|