You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
425 B
19 lines
425 B
"use client";
|
|
|
|
import type { ReactNode } from "react";
|
|
import { useViewPaddings } from "@/hooks/use-view-paddings";
|
|
|
|
type FixedBottomProps = {
|
|
children: ReactNode;
|
|
className?: string;
|
|
};
|
|
|
|
export function FixedBottom({ children, className }: FixedBottomProps) {
|
|
const { bottom } = useViewPaddings();
|
|
|
|
return (
|
|
<div style={{ paddingBottom: `${bottom}px` }} className={className}>
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|