mirror of
https://github.com/supabase/supabase.git
synced 2026-10-17 15:19:08 +03:00
* 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>
24 lines
593 B
TypeScript
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>
|
|
)
|
|
}
|