Unverified Commit da9a9ffb authored by Zack Tanner's avatar Zack Tanner Committed by GitHub

[dev-overlay]: remove old CollapseIcon (#76239)

parent ef42b84e
......@@ -12,7 +12,7 @@ export function CollapseIcon({ collapsed }: { collapsed?: boolean } = {}) {
: {})}
>
<path
fill="#666"
style={{ fill: 'var(--color-font)' }}
fillRule="evenodd"
d="m6.75 3.94.53.53 2.824 2.823a1 1 0 0 1 0 1.414L7.28 11.53l-.53.53L5.69 11l.53-.53L8.69 8 6.22 5.53 5.69 5l1.06-1.06Z"
clipRule="evenodd"
......
import { useMemo, useState } from 'react'
import { CollapseIcon } from '../internal/icons/CollapseIcon'
import { CollapseIcon } from '../_experimental/internal/icons/collapse-icon'
/**
*
* Format component stack into pseudo HTML
......
export function CollapseIcon({ collapsed }: { collapsed?: boolean } = {}) {
return (
<svg
data-nextjs-call-stack-chevron-icon
data-collapsed={collapsed}
fill="none"
height="20"
width="20"
shapeRendering="geometricPrecision"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
viewBox="0 0 24 24"
// rotate 90 degrees if not collapsed.
// If collapsed isn't present, the rotation is applied via the `data-nextjs-collapsed-call-stack-details` element's `open` attribute
{...(typeof collapsed === 'boolean'
? { style: { transform: collapsed ? undefined : 'rotate(90deg)' } }
: {})}
>
<path d="M9 18l6-6-6-6" />
</svg>
)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment