const { PHPMYADMIN_PORT = 8081 } = import.meta.env;
type Props = {
title?: string;
};
export default function PmaLink(props: Props) {
const host = window.location.hostname;
const url = `http://${host}:${PHPMYADMIN_PORT}`;
return (
<a href={url} target="_blank" rel="noopener noreferrer">
{props.title ?? "phpMyAdmin"} ({url})
</a>
);
}