mirror of https://github.com/portainer/portainer
16 lines
367 B
TypeScript
16 lines
367 B
TypeScript
|
import clsx from 'clsx';
|
||
|
import { PropsWithChildren } from 'react';
|
||
|
|
||
|
import { useModalContext } from './Modal';
|
||
|
import styles from './ModalFooter.module.css';
|
||
|
|
||
|
export function ModalFooter({ children }: PropsWithChildren<unknown>) {
|
||
|
useModalContext();
|
||
|
|
||
|
return (
|
||
|
<div className={clsx(styles.modalFooter, 'flex justify-end')}>
|
||
|
{children}
|
||
|
</div>
|
||
|
);
|
||
|
}
|