Files
supabase/apps/studio/components/ui/InlineLink.tsx
397b787eb5 feat: add project settings option to mark compliance projects (#30494)
* feat: add project settings option to mark compliance projects

Projects within organizations with the HIPAA add-on can be mark as
"sensitive". These projects will have additional security advisor checks
applied and other compliance related guardrails.

* prettier

* change hipaa check

* prettier fix

* Update apps/studio/components/interfaces/Settings/General/ComplianceConfig/ProjectComplianceMode.tsx

Co-authored-by: Kevin Grüneberg <k.grueneberg1994@gmail.com>

* fix: prettier

* Address all feedback

* Address refactor

* prep to use new docs link

---------

Co-authored-by: Kevin Grüneberg <k.grueneberg1994@gmail.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-12-11 08:53:40 +01:00

24 lines
593 B
TypeScript

import Link from 'next/link'
import { PropsWithChildren } from 'react'
interface InlineLinkProps {
href: string
}
export const InlineLink = ({ href, children }: PropsWithChildren<InlineLinkProps>) => {
const className =
'underline transition underline-offset-2 decoration-foreground-lighter hover:decoration-foreground'
if (href.startsWith('http')) {
return (
<a className={className} href={href} target="_blank" rel="noreferrer noopener">
{children}
</a>
)
}
return (
<Link className={className} href={href}>
{children}
</Link>
)
}