diff --git a/app/lib/components/tabed-box.tsx b/app/lib/components/tabed-box.tsx index b1b058a..3350d4b 100644 --- a/app/lib/components/tabed-box.tsx +++ b/app/lib/components/tabed-box.tsx @@ -1,8 +1,8 @@ import {useState, type FC, type ReactElement} from 'react' -export const TabedBox: FC<{children: ReactElement[]}> = ({ - children -}) => { +export const TabedBox: FC<{ + children: (ReactElement | undefined)[] +}> = ({children}) => { const [openTab, setOpenTab] = useState(0) return ( @@ -12,6 +12,10 @@ export const TabedBox: FC<{children: ReactElement[]}> = ({
{children.map((child, i) => { + if (child === undefined) { + return + } + return (