1- import { getProjectIcon } from "@/constants" ;
21import { CloseButton } from "../CloseButton" ;
32import { LoadingSkeleton } from "../LoadingSkeleton" ;
43import { TruncatedTitle } from "../TruncatedTitle" ;
@@ -10,9 +9,7 @@ type Props = {
109 isLoading : boolean ;
1110 close : ( ) => void ;
1211} ;
13- export function Title ( { project, title, isLoading, close } : Props ) {
14- const ProjectIcon = getProjectIcon ( project ) ;
15-
12+ export function Title ( { title, isLoading, close } : Props ) {
1613 const buttonMinWidth = "1rem" ;
1714 const buttonMaxWidth = "1.25rem" ;
1815 const buttonPreferredWidth = "calc(0.9rem + 0.4vw)" ;
@@ -21,14 +18,7 @@ export function Title({ project, title, isLoading, close }: Props) {
2118 const iconStyles =
2219 "min-w-[1.25rem] flex items-center justify-center w-[clamp(1.25rem,0.8rem+2vw,2.5rem)] h-[clamp(1.25rem,0.8rem+2vw,2.5rem)] rounded-full" ;
2320 return (
24- < div className = "grid grid-cols-[auto,1fr,auto] content-center gap-page-padding min-h-[84px] px-page-padding lg:px-7 py-5 bg-blue-grey-700" >
25- { isLoading ? (
26- < div className = { iconStyles } >
27- < LoadingSkeleton width = "100%" height = "100%" borderRadius = "50%" />
28- </ div >
29- ) : (
30- < ProjectIcon className = { iconStyles } />
31- ) }
21+ < div className = "grid grid-cols-[1fr,auto] content-center gap-page-padding min-h-[84px] px-page-padding lg:px-7 py-5 bg-blue-grey-700" >
3222 < h1
3323 className = "inline-flex items-center max-w-[400px] text-lg text-light"
3424 id = "panel-title"
0 commit comments