import * as React from "react"; import type { TypeStyledComponentsCommonProps } from "@sproutsocial/seeds-react-system-props"; import type { TypeTextProps } from "@sproutsocial/seeds-react-text"; import type { TypeSystemFlexboxProps } from "@sproutsocial/seeds-react-system-props"; export interface TypeLinkProps extends Omit< TypeTextProps, keyof Omit, "color"> >, Omit, "color">, TypeSystemFlexboxProps { /** Optional prop to make the URL open in a new tab */ external?: boolean; children: React.ReactNode; /** Setting this prop will cause the component to be rendered as a link */ href?: string; /** Disables user action and applies a disabled style to the component */ disabled?: boolean; /** Can be used in addition to an href but still renders as a link. Omitting href will render as button */ onClick?: (e: React.SyntheticEvent) => void; as?: TypeStyledComponentsCommonProps["as"]; underline?: boolean; qa?: { [key: string]: unknown }; // should this be string|number? }