@nex-ui/react
Version:
🎉 A beautiful, modern, and reliable React component library.
43 lines (40 loc) • 1.28 kB
JavaScript
"use client";
import { jsx } from 'react/jsx-runtime';
import { useDefaultProps } from '../utils/useDefaultProps.mjs';
import { useSlotClasses } from '../utils/useSlotClasses.mjs';
import { useStyles } from '../utils/useStyles.mjs';
import { useSlot } from '../utils/useSlot.mjs';
import { ModalFooter } from '../modal/ModalFooter.mjs';
import { drawerFooterRecipe } from '../../theme/recipes/drawer.mjs';
const slots = [
'root'
];
const DrawerFooter = (inProps)=>{
const props = useDefaultProps({
name: 'DrawerFooter',
props: inProps
});
const { children, ...remainingProps } = props;
const slotClasses = useSlotClasses({
name: 'DrawerFooter',
slots
});
const style = useStyles({
ownerState: props,
name: 'DrawerFooter',
recipe: drawerFooterRecipe
});
const [DrawerFooterRoot, getDrawerFooterRootProps] = useSlot({
style,
elementType: ModalFooter,
classNames: slotClasses.root,
externalForwardedProps: remainingProps,
shouldForwardComponent: false
});
return /*#__PURE__*/ jsx(DrawerFooterRoot, {
...getDrawerFooterRootProps(),
children: children
});
};
DrawerFooter.displayName = 'DrawerFooter';
export { DrawerFooter };