You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
413 B
17 lines
413 B
3 years ago
|
import InternalAnchor from './Anchor';
|
||
8 years ago
|
import AnchorLink from './AnchorLink';
|
||
|
|
||
2 years ago
|
export type { AnchorProps } from './Anchor';
|
||
|
export type { AnchorLinkProps } from './AnchorLink';
|
||
7 years ago
|
|
||
3 years ago
|
type InternalAnchorType = typeof InternalAnchor;
|
||
|
|
||
2 years ago
|
type CompoundedComponent = InternalAnchorType & {
|
||
3 years ago
|
Link: typeof AnchorLink;
|
||
2 years ago
|
};
|
||
3 years ago
|
|
||
2 years ago
|
const Anchor = InternalAnchor as CompoundedComponent;
|
||
3 years ago
|
|
||
7 years ago
|
Anchor.Link = AnchorLink;
|
||
|
export default Anchor;
|