🏷️(react) remove ModalFooter export

This component was not supposed to be exported, it could be misleading
for consumers.

Fixes #258
This commit is contained in:
Nathan Vasse
2024-02-16 15:08:50 +01:00
committed by NathanVss
parent 1adff4a165
commit 670eb8ce57

View File

@@ -140,11 +140,7 @@ export const Modal = (props: ModalProps) => {
); );
}; };
export const ModalFooter = ({ const ModalFooter = ({ leftActions, rightActions, actions }: ModalProps) => {
leftActions,
rightActions,
actions,
}: ModalProps) => {
if ((leftActions || rightActions) && actions) { if ((leftActions || rightActions) && actions) {
throw new Error("Cannot use leftActions or rightActions with actions"); throw new Error("Cannot use leftActions or rightActions with actions");
} }