rework/lightweight #12
@ -18,7 +18,9 @@ export function Link(props: LinkProps) {
|
|||||||
|
|
||||||
const downloadExtensions = [".pdf", ".zip"];
|
const downloadExtensions = [".pdf", ".zip"];
|
||||||
|
|
||||||
const isDownload = downloadExtensions.some(props.href.endsWith);
|
const isDownload = downloadExtensions.some((extension) =>
|
||||||
|
props.href.endsWith(extension),
|
||||||
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<a
|
<a
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user