Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
import * as stylex from "@stylexjs/stylex";
import type { ComponentProps, ReactNode } from "react";
import { cn } from "@/lib/utils";
import {
stickyActionFooterContentStyle,
stickyActionFooterRightStyle,
stickyActionFooterSideStyle,
stickyActionFooterStyle,
} from "./styles.stylex";
type StickyActionFooterProps = Readonly<
ComponentProps<"div"> & {
contentClassName?: string;
contentPadding?: boolean;
left?: ReactNode;
right?: ReactNode;
leftClassName?: string;
rightClassName?: string;
}
>;
function StickyActionFooter({
className,
contentClassName,
contentPadding = true,
left,
leftClassName,
right,
rightClassName,
ref,
style,
...props
}: StickyActionFooterProps) {
const rootStylexProps = stylex.props(stickyActionFooterStyle());
const contentStylexProps = stylex.props(stickyActionFooterContentStyle());
const leftStylexProps = stylex.props(stickyActionFooterSideStyle());
const rightStylexProps = stylex.props(
stickyActionFooterSideStyle(),
stickyActionFooterRightStyle()
);
return (
<div
ref={ref}
data-slot="sticky-action-footer"
className={cn(
"sticky bottom-0 z-10 border-t border-block-border bg-background py-4",
rootStylexProps.className,
className
)}
style={{ ...rootStylexProps.style, ...style }}
{...props}
>
<div
data-slot="sticky-action-footer-content"
className={cn(
"gap-x-2 gap-y-2",
contentPadding && "px-4 sm:px-6",
contentStylexProps.className,
contentClassName
)}
style={contentStylexProps.style}
>
<div
data-slot="sticky-action-footer-left"
className={cn(
"flex-wrap gap-x-2 gap-y-2",
leftStylexProps.className,
leftClassName
)}
style={leftStylexProps.style}
>
{left}
</div>
<div
data-slot="sticky-action-footer-right"
className={cn(
"flex-wrap gap-x-2 gap-y-2",
rightStylexProps.className,
rightClassName
)}
style={rightStylexProps.style}
>
{right}
</div>
</div>
</div>
);
}
export { StickyActionFooter };