+
+
setCreationDropdownOpen((o) => !o)}
+ title="Select what you're creating"
+ style={{
+ display: 'inline-flex',
+ alignItems: 'center',
+ gap: '0.5rem',
+ padding: '0.5rem 1rem',
+ background: creationDropdownOpen ? BORDER_HOVER : BG_SECONDARY,
+ border: `1px solid ${creationDropdownOpen ? BORDER_HOVER : BORDER}`,
+ borderRadius: 5,
+ fontSize: '0.875rem',
+ fontWeight: 500,
+ color: TEXT_PRIMARY,
+ cursor: 'pointer',
+ fontFamily: 'inherit',
+ transition: 'border-color 0.15s, background-color 0.15s',
+ }}
+ onMouseEnter={(e) => {
+ if (!creationDropdownOpen) {
+ e.currentTarget.style.backgroundColor = BORDER_HOVER;
+ e.currentTarget.style.borderColor = BORDER_HOVER;
+ }
+ }}
+ onMouseLeave={(e) => {
+ if (!creationDropdownOpen) {
+ e.currentTarget.style.backgroundColor = BG_SECONDARY;
+ e.currentTarget.style.borderColor = BORDER;
+ }
+ }}
+ >
+
+ {selectedCreation?.label ?? 'Tools'}
+
+
+ {creationDropdownOpen && (
+
+ {CREATION_TYPES.map((opt, idx) => {
+ const isSelected = opt.id === creationTypeId;
+ const isLast = idx === CREATION_TYPES.length - 1;
+ return (
+ {
+ setCreationTypeId(opt.id);
+ setCreationDropdownOpen(false);
+ }}
+ style={{
+ display: 'block',
+ width: '100%',
+ textAlign: 'left',
+ padding: '0.5rem 0.75rem',
+ background: isSelected ? BORDER_HOVER : 'transparent',
+ border: 'none',
+ ...(isLast ? {} : { borderBottom: `1px solid ${BORDER}` }),
+ color: TEXT_PRIMARY,
+ fontSize: '0.875rem',
+ fontWeight: isSelected ? 600 : 500,
+ cursor: 'pointer',
+ fontFamily: 'inherit',
+ transition: 'background-color 0.15s',
+ }}
+ onMouseEnter={(e) => {
+ if (!isSelected) e.currentTarget.style.backgroundColor = BG_SECONDARY;
+ }}
+ onMouseLeave={(e) => {
+ if (!isSelected) e.currentTarget.style.backgroundColor = 'transparent';
+ }}
+ >
+ {opt.label}
+ {opt.sublabel && (
+
+ {opt.sublabel}
+
+ )}
+
+ );
+ })}
+
+ )}
+
+ {isSocialPost && (
+ <>
+
+
setSocialPostFormatDropdownOpen((o) => !o)}
+ title="Single post or Carousel"
+ style={{
+ display: 'inline-flex',
+ alignItems: 'center',
+ gap: '0.5rem',
+ padding: '0.5rem 1rem',
+ background: socialPostFormatDropdownOpen ? BORDER_HOVER : BG_SECONDARY,
+ border: `1px solid ${socialPostFormatDropdownOpen ? BORDER_HOVER : BORDER}`,
+ borderRadius: 5,
+ fontSize: '0.875rem',
+ fontWeight: 500,
+ color: TEXT_PRIMARY,
+ cursor: 'pointer',
+ fontFamily: 'inherit',
+ transition: 'border-color 0.15s, background-color 0.15s',
+ }}
+ onMouseEnter={(e) => {
+ if (!socialPostFormatDropdownOpen) {
+ e.currentTarget.style.backgroundColor = BORDER_HOVER;
+ e.currentTarget.style.borderColor = BORDER_HOVER;
+ }
+ }}
+ onMouseLeave={(e) => {
+ if (!socialPostFormatDropdownOpen) {
+ e.currentTarget.style.backgroundColor = BG_SECONDARY;
+ e.currentTarget.style.borderColor = BORDER;
+ }
+ }}
+ >
+ {selectedSocialPostFormat.label}
+
+
+ {socialPostFormatDropdownOpen && (
+
+ {SOCIAL_POST_FORMATS.map((opt, idx) => {
+ const isSelected = opt.id === socialPostFormatId;
+ const isLast = idx === SOCIAL_POST_FORMATS.length - 1;
+ return (
+ {
+ setSocialPostFormatId(opt.id);
+ setSocialPostFormatDropdownOpen(false);
+ }}
+ style={{
+ display: 'block',
+ width: '100%',
+ textAlign: 'left',
+ padding: '0.5rem 0.75rem',
+ background: isSelected ? BORDER_HOVER : 'transparent',
+ border: 'none',
+ ...(isLast ? {} : { borderBottom: `1px solid ${BORDER}` }),
+ color: TEXT_PRIMARY,
+ fontSize: '0.875rem',
+ fontWeight: isSelected ? 600 : 500,
+ cursor: 'pointer',
+ fontFamily: 'inherit',
+ transition: 'background-color 0.15s',
+ }}
+ onMouseEnter={(e) => {
+ if (!isSelected) e.currentTarget.style.backgroundColor = BG_SECONDARY;
+ }}
+ onMouseLeave={(e) => {
+ if (!isSelected) e.currentTarget.style.backgroundColor = 'transparent';
+ }}
+ >
+ {opt.label}
+
+ );
+ })}
+
+ )}
+
+
+
setSocialPostDimensionDropdownOpen((o) => !o)}
+ title="Select dimensions"
+ style={{
+ display: 'inline-flex',
+ alignItems: 'center',
+ gap: '0.5rem',
+ padding: '0.5rem 1rem',
+ background: socialPostDimensionDropdownOpen ? BORDER_HOVER : BG_SECONDARY,
+ border: `1px solid ${socialPostDimensionDropdownOpen ? BORDER_HOVER : BORDER}`,
+ borderRadius: 5,
+ fontSize: '0.875rem',
+ fontWeight: 500,
+ color: TEXT_PRIMARY,
+ cursor: 'pointer',
+ fontFamily: 'inherit',
+ transition: 'border-color 0.15s, background-color 0.15s',
+ }}
+ onMouseEnter={(e) => {
+ if (!socialPostDimensionDropdownOpen) {
+ e.currentTarget.style.backgroundColor = BORDER_HOVER;
+ e.currentTarget.style.borderColor = BORDER_HOVER;
+ }
+ }}
+ onMouseLeave={(e) => {
+ if (!socialPostDimensionDropdownOpen) {
+ e.currentTarget.style.backgroundColor = BG_SECONDARY;
+ e.currentTarget.style.borderColor = BORDER;
+ }
+ }}
+ >
+ {selectedSocialPostDimension.dimensions}
+
+
+ {socialPostDimensionDropdownOpen && (
+
+ {SOCIAL_POST_DIMENSIONS.map((opt, idx) => {
+ const isSelected = opt.id === socialPostDimensionId;
+ const isLast = idx === SOCIAL_POST_DIMENSIONS.length - 1;
+ return (
+ {
+ setSocialPostDimensionId(opt.id);
+ setSocialPostDimensionDropdownOpen(false);
+ }}
+ style={{
+ display: 'block',
+ width: '100%',
+ textAlign: 'left',
+ padding: '0.5rem 0.75rem',
+ background: isSelected ? BORDER_HOVER : 'transparent',
+ border: 'none',
+ ...(isLast ? {} : { borderBottom: `1px solid ${BORDER}` }),
+ color: TEXT_PRIMARY,
+ fontSize: '0.875rem',
+ fontWeight: isSelected ? 600 : 500,
+ cursor: 'pointer',
+ fontFamily: 'inherit',
+ transition: 'background-color 0.15s',
+ }}
+ onMouseEnter={(e) => {
+ if (!isSelected) e.currentTarget.style.backgroundColor = BG_SECONDARY;
+ }}
+ onMouseLeave={(e) => {
+ if (!isSelected) e.currentTarget.style.backgroundColor = 'transparent';
+ }}
+ >
+ {opt.dimensions}
+ {opt.sublabel && (
+
+ {opt.sublabel}
+
+ )}
+
+ );
+ })}
+
+ )}
+
+ >
+ )}
+ {isVideo && (
+ <>
+
+
setVideoFormatDropdownOpen((o) => !o)}
+ title="Story or Video"
+ style={{
+ display: 'inline-flex',
+ alignItems: 'center',
+ gap: '0.5rem',
+ padding: '0.5rem 1rem',
+ background: videoFormatDropdownOpen ? BORDER_HOVER : BG_SECONDARY,
+ border: `1px solid ${videoFormatDropdownOpen ? BORDER_HOVER : BORDER}`,
+ borderRadius: 5,
+ fontSize: '0.875rem',
+ fontWeight: 500,
+ color: TEXT_PRIMARY,
+ cursor: 'pointer',
+ fontFamily: 'inherit',
+ transition: 'border-color 0.15s, background-color 0.15s',
+ }}
+ onMouseEnter={(e) => {
+ if (!videoFormatDropdownOpen) {
+ e.currentTarget.style.backgroundColor = BORDER_HOVER;
+ e.currentTarget.style.borderColor = BORDER_HOVER;
+ }
+ }}
+ onMouseLeave={(e) => {
+ if (!videoFormatDropdownOpen) {
+ e.currentTarget.style.backgroundColor = BG_SECONDARY;
+ e.currentTarget.style.borderColor = BORDER;
+ }
+ }}
+ >
+ {selectedVideoFormat.label}
+
+
+ {videoFormatDropdownOpen && (
+
+ {VIDEO_FORMATS.map((opt, idx) => {
+ const isSelected = opt.id === videoFormatId;
+ const isLast = idx === VIDEO_FORMATS.length - 1;
+ return (
+ {
+ setVideoFormatId(opt.id);
+ setVideoFormatDropdownOpen(false);
+ }}
+ style={{
+ display: 'block',
+ width: '100%',
+ textAlign: 'left',
+ padding: '0.5rem 0.75rem',
+ background: isSelected ? BORDER_HOVER : 'transparent',
+ border: 'none',
+ ...(isLast ? {} : { borderBottom: `1px solid ${BORDER}` }),
+ color: TEXT_PRIMARY,
+ fontSize: '0.875rem',
+ fontWeight: isSelected ? 600 : 500,
+ cursor: 'pointer',
+ fontFamily: 'inherit',
+ transition: 'background-color 0.15s',
+ }}
+ onMouseEnter={(e) => {
+ if (!isSelected) e.currentTarget.style.backgroundColor = BG_SECONDARY;
+ }}
+ onMouseLeave={(e) => {
+ if (!isSelected) e.currentTarget.style.backgroundColor = 'transparent';
+ }}
+ >
+ {opt.label}
+
+ );
+ })}
+
+ )}
+
+
+
setVideoDimensionDropdownOpen((o) => !o)}
+ title="Select dimensions"
+ style={{
+ display: 'inline-flex',
+ alignItems: 'center',
+ gap: '0.5rem',
+ padding: '0.5rem 1rem',
+ background: videoDimensionDropdownOpen ? BORDER_HOVER : BG_SECONDARY,
+ border: `1px solid ${videoDimensionDropdownOpen ? BORDER_HOVER : BORDER}`,
+ borderRadius: 5,
+ fontSize: '0.875rem',
+ fontWeight: 500,
+ color: TEXT_PRIMARY,
+ cursor: 'pointer',
+ fontFamily: 'inherit',
+ transition: 'border-color 0.15s, background-color 0.15s',
+ }}
+ onMouseEnter={(e) => {
+ if (!videoDimensionDropdownOpen) {
+ e.currentTarget.style.backgroundColor = BORDER_HOVER;
+ e.currentTarget.style.borderColor = BORDER_HOVER;
+ }
+ }}
+ onMouseLeave={(e) => {
+ if (!videoDimensionDropdownOpen) {
+ e.currentTarget.style.backgroundColor = BG_SECONDARY;
+ e.currentTarget.style.borderColor = BORDER;
+ }
+ }}
+ >
+ {selectedVideoDimension.dimensions}
+
+
+ {videoDimensionDropdownOpen && (
+
+ {videoDimensionsForFormat.map((opt, idx) => {
+ const isSelected = opt.id === videoDimensionId;
+ const isLast = idx === videoDimensionsForFormat.length - 1;
+ return (
+ {
+ setVideoDimensionId(opt.id);
+ setVideoDimensionDropdownOpen(false);
+ }}
+ style={{
+ display: 'block',
+ width: '100%',
+ textAlign: 'left',
+ padding: '0.5rem 0.75rem',
+ background: isSelected ? BORDER_HOVER : 'transparent',
+ border: 'none',
+ ...(isLast ? {} : { borderBottom: `1px solid ${BORDER}` }),
+ color: TEXT_PRIMARY,
+ fontSize: '0.875rem',
+ fontWeight: isSelected ? 600 : 500,
+ cursor: 'pointer',
+ fontFamily: 'inherit',
+ transition: 'background-color 0.15s',
+ }}
+ onMouseEnter={(e) => {
+ if (!isSelected) e.currentTarget.style.backgroundColor = BG_SECONDARY;
+ }}
+ onMouseLeave={(e) => {
+ if (!isSelected) e.currentTarget.style.backgroundColor = 'transparent';
+ }}
+ >
+ {opt.dimensions}
+ {opt.sublabel && (
+
+ {opt.sublabel}
+
+ )}
+
+ );
+ })}
+
+ )}
+
+ >
+ )}
+