style selection number selected

This commit is contained in:
bflatastic committed 2024-08-20 22:11:49 +07:00
1 parent 366be13c85
commit 67df6c4d19
2 files changed
+11 -1

No files matched your search

@@ -27,6 +27,7 @@ interface ModalProps {
position?: "center" | "top";
mobileFullscreen?: boolean;
footerContent?: React.ReactNode;
titleAfter?: React.ReactNode;
}
export interface ModalUtilities {
@@ -70,6 +71,7 @@ const Modal: React.FC<ModalProps> = ({
position = "center",
mobileFullscreen = false,
footerContent,
titleAfter,
}) => {
const fadeIn = useSpring({
opacity: show ? 1 : 0,
@@ -135,7 +137,10 @@ const Modal: React.FC<ModalProps> = ({
<header className="modal-header">
<h4 className="modal-title fw-bold">
{icon && <FontAwesomeIcon icon={icon} className="me-3" />}
{title || ""}
<div className="d-flex gap-2">
{title || ""}
{titleAfter && titleAfter}
</div>
</h4>
<button
type="button"
@@ -272,6 +272,11 @@ export default function StyleVideo() {
large={true}
content={StyleSelectionList}
title="Select Style(s)"
titleAfter={
<div className="opacity-75">
— ({selectedStyleValues.length}/3)
</div>
}
subtitle="You may choose up to three styles to generate multiple videos at once."
contentProps={{
styleOptions: STYLE_OPTIONS,