import css from "./ShortLink.module.scss"; export interface ShortLinkProps { url: string; } export const ShortLink = ({ url }: ShortLinkProps) => { return (
{stripScheme(url)}
); }; function stripScheme(url: string): string { return url.replace(/^https?:\/\//, ""); }