import Link from 'next/link';
import React from 'react';
type BookingLinkProps = {
href: string;
children: React.ReactNode;
className?: string;
};
export default function BookingLink({
href,
children,
className,
}: BookingLinkProps) {
const isExternal = /^https?:\/\//.test(href);
if (isExternal) {
return (
{children}
);
}
return (
{children}
);
}