({
children,
sticky = false
}: {
children: React.ReactNode;
sticky?: boolean;
})
| 1 | import clsx from 'clsx'; |
| 2 | |
| 3 | export function Col({ |
| 4 | children, |
| 5 | sticky = false |
| 6 | }: { |
| 7 | children: React.ReactNode; |
| 8 | sticky?: boolean; |
| 9 | }) { |
| 10 | return ( |
| 11 | <div |
| 12 | className={clsx( |
| 13 | '[&>:first-child]:mt-0 [&>:last-child]:mb-0', |
| 14 | sticky && 'xl:sticky xl:top-24' |
| 15 | )} |
| 16 | > |
| 17 | {children} |
| 18 | </div> |
| 19 | ); |
| 20 | } |
nothing calls this directly
no outgoing calls
no test coverage detected