import React from "react";
import { ExternalLinkAltIcon } from "@patternfly/react-icons";
import { Button, ButtonProps } from "@patternfly/react-core";
import { IFormatter, IFormatterValueType } from "@patternfly/react-table";
export const FormattedLink = ({ title, href, ...rest }: ButtonProps) => {
return (
}
iconPosition="right"
component="a"
href={href}
target="_blank"
{...rest}
>
{title ? title : href}
);
};
export const formattedLinkTableCell = (): IFormatter => (
data?: IFormatterValueType
) => {
return (data ? (
) : undefined) as object;
};