File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
t0016Next/myapp/src/components/button Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11import { useVideo } from "@/providers/VideoProvider" ;
22
3- export const ToggleVideoPositionButton = ( { textSize } : { textSize ?: string } ) => {
3+ export const ToggleVideoPositionButton = ( { isDisplayText , textSize } : { isDisplayText : boolean ; textSize ?: string } ) => {
44 const { videoState, togglePosition } = useVideo ( ) ;
55
66 // NOTE: デザイン模索中
77 // 本物のトグルならこっち
88 const text = "動画を固定" ;
99 return (
1010 < div className = "flex h-full items-center" >
11- < span className = { `${ textSize ?? "text-xs" } ` } > { text } </ span >
11+ { isDisplayText === true && < span className = { `${ textSize ?? "text-xs" } ` } > { text } </ span > }
1212 < label className = "flex h-full items-center" >
1313 < input type = "checkbox" checked = { videoState . position === "footer" } className = "peer sr-only" onChange = { ( ) => togglePosition ( ) } />
1414 < span
You can’t perform that action at this time.
0 commit comments