mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2025-11-20 20:18:15 +00:00
Create new citation component to fix errors with tailwind not compiling CSS classes for the anchor tag
20 lines
363 B
TypeScript
20 lines
363 B
TypeScript
const Citation = ({
|
|
href,
|
|
children,
|
|
}: {
|
|
href: string;
|
|
children: React.ReactNode;
|
|
}) => {
|
|
return (
|
|
<a
|
|
href={href}
|
|
target="_blank"
|
|
className="bg-light-secondary dark:bg-dark-secondary px-1 rounded ml-1 no-underline text-xs text-black/70 dark:text-white/70 relative"
|
|
>
|
|
{children}
|
|
</a>
|
|
);
|
|
};
|
|
|
|
export default Citation;
|