Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | 6x | import { Icon } from "@canonical/react-components";
type Props = {
isCommunity: boolean;
interfaceName: string | undefined;
interfaceVersion: string | undefined;
};
function InterfaceDetailsLinks({
isCommunity,
interfaceName,
interfaceVersion,
}: Props) {
return (
<>
<h2 className="p-muted-heading">Relevant links</h2>
<p>
<a
href={`https://github.com/canonical/charm-relation-interfaces/issues/new?title=${
isCommunity ? "(Untested)+" : ""
}${interfaceName}${interfaceVersion ? `+${interfaceVersion}` : ""}`}
>
<Icon name="submit-bug" />
Submit a bug
</a>
</p>
{!isCommunity && (
<p>
<a
href={`https://github.com/canonical/charm-relation-interfaces/tree/main/interfaces/${interfaceName}`}
>
<i className="p-icon--archive"></i>
Specification archive
</a>
</p>
)}
</>
);
}
export default InterfaceDetailsLinks;
|