SELECT 'shell' AS component
, 'dark' AS theme
, 'Clip' AS title
, 'https://shandan.one/static/clip/clip-favicon_square.svg' AS image
, 'https://cdn.jsdelivr.net/npm/purecss@2.1.0/build/pure-min.css' AS css
;

SET color = '#4f8f4f';
SET tabler_color = 'green';
SELECT 'dynamic' AS component, sqlpage.run_sql('sqlpage/Style.sql') AS properties;

SET tool = 'clip';
SET hash = CASE $hash = ''
  WHEN TRUE THEN NULL
  ELSE $hash
END;
SET inner = CASE $hash IS NULL
  WHEN TRUE THEN 'sqlpage/Link.sql'
  ELSE 'sqlpage/link.sql'
END;
SELECT 'dynamic' AS component, sqlpage.run_sql($inner) AS properties;
